Hi,
I had designed one customized table & form. Users will key in some transactions and posts from that form. when they posts it moves to history table and also during posting we are scanning all the records for recalculate some fields and update. Simultaneousoly 4-5 users craetes the transactions at time. Sometimes if they post the transaction i am getting the locking problem like "Another user has modified the record" and they whole data they key in will lost.
I am using Navision SP3 with SQL Server 2005.
Please tell me how to avoid this problem. Can i want to change Lock time out or any other things?
Please let me know on this.
Thank u,
Anil
0
Comments
BUT BE CAREFUL! Using a LOCKTABLE and scanning the whole table will lock ALL records until you COMMIT the data. This means that the other users will be blocked until the end of the transaction.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
so you have to research the record which makes the errors or the structure of your Table. The Primary Key(s) should make it able to work with N users in N different primary Keys.
Maybe it's the Numbers-table, or it is a central controll-table for all users, or they all insert records in a unfiltered table?
But during refresing of the data there is no filters. we will scan all the records in the table. Is there any solution to avoid this problem?