web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Database synchronization

(0) ShareShare
ReportReport
Posted on by 4,131

Hi, 

It looks like in D365FO, if we added an index in SQL Server (not on AOT), even we do a database sync, the index is not deleted?

Thanks,

I have the same question (0)
  • Suggested answer
    Mahmoudi Mohamed Amine Profile Picture
    30 on at

    Hi @Yuji

    Try to delete the field from table and add him and rebuild the project

    good luck

  • Verified answer
    nmaenpaa Profile Picture
    101,162 Moderator on at

    You can actually add new indexes to your prod system via LCS. I guess this is why the db sync will not delete indexes that don't exist in AOT. Otherwise the indexes added from LCS would be wiped out.

  • Yuji Profile Picture
    4,131 on at

    Does it mean it won't delete indexes in PROD, but for other environments, indexes will be wiped out if they are not on AOT?

  • Verified answer
    Sukrut Parab Profile Picture
    71,710 Moderator on at

    Yes , if you add index directly in SQL , its going to be deleted after synchronization , you can try it in your dev VM. In PROD,  if you create index through LCS directly in SQL  to fix performance issue and  even if its not dropped , you should plan it to implement it as a part of your application application.  

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 456 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 429 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans