Cursors and Lock Conflicts

Updates are issued through a single database connection, including updates that reference a cursor (for example, in an UPDATE WHERE CURRENT OF cursor_name statement). Because of this, locking conflicts do not occur between updates issued under the same CONNECT TO, SET CONNECT, or default connection.

Each cursor’s retrieval operations are performed through a separate database connection.

These situations block cursors:


Note Microsoft® SQL Server™ version 6.5 performs locking internally at the page level rather than at the row level. Therefore, a second operation can be locked out by the first cursor operation even though the operations are accessing different rows.


For information about SQL Server 7.0 cursor locking mechanisms, see Cursor Transaction Isolation Levels.


(c) 1988-98 Microsoft Corporation. All Rights Reserved.