Microsoft KB Archive/45259

{|
 * width="100%"|

INF: Determining If a Row Has Been Changed in Browse Mode

 * }

Q45259

-

The information in this article applies to:


 * Microsoft SQL Server Programmer's Toolkit, version 4.2

-

In browse mode, it is possible for user 1 to determine that user 2 has made a change to a row without actually issuing an update to that row. You do this by issuing a select with the same WHERE clause (constructed by dbqual) that would have been used for the update. If the select returns a 532 error, the timestamp has changed since you last read the row. If you use this technique, be aware that there is no protection against another user changing the row right after it is tested, unless you select with HOLDLOCK.

Additional query words: DB-Library db-lib dblib

Keywords : kbprogramming

Issue type :

Technology : kbSQLServSearch kbAudDeveloper kbSQLServPTK420