Hi:
How do you conduct "update" statements in SQL for a Business Central company?
Thanks!
John
Hi, if you want to modify the existing records in a table, you should use the following method.
Record.Modify([Boolean]) Method
https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/record/record-modify-method
And, Insert, Modify, ModifyAll, Delete, and DeleteAll Methods
https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-insert-modify-modifyall-delete-and-deleteall-methods
Hope this helps.
Thanks.
ZHU
You should not really be doing direct updates of your Business Central data directly in SQL server. You should do updates through AL code as Zhu is talking about.
And you will only have access to SQL data in BC on-prem - in BC online you do not have direct database access.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
OussamaSabbouh 2,915
Jainam M. Kothari 2,011 Super User 2025 Season 2
YUN ZHU 1,989 Super User 2025 Season 2