The information in this article applies to:
SUMMARYThis article explains locking when using separate connections for an update in browse mode. MORE INFORMATION
SQL Server considers different connections to be different users. This
means that the select connection could block (or deadlock) the update
connection. The select statement acquires a shared page lock on each page
that it reads. If HOLDLOCK is not used, it releases each shared page lock
as soon as it finishes reading the page. Whenever there are unprocessed
rows from a select statement, the page containing the first unprocessed row
remains locked until all rows from that page are processed. Then, the lock
is moved to the next page. Unfortunately, the page containing the first
unprocessed row probably will also contain the row that is to be updated.
Additional query words: Windows NT
Keywords : kbother SSrvServer SSrvWinNT |
Last Reviewed: March 6, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |