Hi,
We are trying to update the custom field in Sales header through SQL coding when the field is updated we are facing below error message, could someone help us how to lock the table from the sql side.
*This post is locked for comments
Hi,
We are trying to update the custom field in Sales header through SQL coding when the field is updated we are facing below error message, could someone help us how to lock the table from the sql side.
*This post is locked for comments
Shyamraoo ,
when we talk about your error, the issue is your are updating SQL coding without down your server
do not let any users to access system when you configuring/modify system
down your system first - for users
then do your configuration
restart your server again
then let access the users to use system
Don't do any critical modification while system is on live (users are working on system)
I concur with Suresh - it's bad practice to update NAV using a SQL script, unless there is no way to accomplish what you're trying to do from a NAV processing report or a codeunit.
It is not recommended to update a NAV table using SQL Script. Why are you updating using SQL, you could create a report or codeunit to update the fields you required.
In NAV side we can use commit statement, but the table is updated using SQL query from SQL side, we tried using commit in sql code but still same issue occurs, is it a right way to update nav table in back end.
Hello Shyamraoo,
Use COMMIT after updating.
André Arnaud de Cal...
292,516
Super User 2025 Season 1
Martin Dráb
231,321
Most Valuable Professional
nmaenpaa
101,156