Re:Lockings in MSSQL Server 7.0
Alcides,
I wish this could help U a little bit. I think it applies in general to
similar blocking problem.
For TQuery objects,
1). code in OnEditError to prevent editing blcoking:
first cancel the changes, then set active property false and
true for refresh. then try edit again!
2). also check qry's OnDelete, OnPost, do similar operation
For TTable objects,
add exception statement, when error happens in save, delete, first
refresh the table and then U may try again for editing.
This is not happend only in Delphi, but also in Visual Basic. The principle
is the changes to the database by you or someone else are not reflected to
the data-aware control or dataset you are using at the moment, so you need
to refresh data from the database to get the edit priority by you, so you
can edit and save data rather smoothly.
Another solution is using CachesUpdate suggested by others.
--------------