Article ID: 177114 - Last Review: March 14, 2006 - Revision: 4.0 FIX: Delete Using EXISTS/NOT EXISTS and Subquery Does Not Escalate Page Lock to Table LockThis article was previously published under Q177114
BUG #: 17399 (NT: 6.5)
SYMPTOMS
Deleting a table that includes at least one text or image datatype by using
Transact-SQL statements EXISTS or NOT EXISTS and a correlated subquery,
will not properly escalate page locks to a table lock. Although sp_lock
will show an Ex_table lock on the table, Ex_page locks will continue to be
acquired, in excess of the LE threshold, for all pages involved in the
deletion. On larger tables, such deletions can exhaust available locks and
generate a system message 1204:
SQL Server has run out of LOCKS.
WORKAROUND
You can work around the problem by using either of these methods:
STATUS
Microsoft has confirmed this to be a problem in SQL Server 6.5. This problem has been corrected in Service Pack 5a for Microsoft SQL Server 6.5.For more information, click the following article number to view the article in the Microsoft Knowledge Base: 197177
(http://support.microsoft.com/kb/197177/
)
INF: How to Obtain SQL Server 6.5 Service Pack 5a For more information, contact your primary support provider.
| Article Translations
|

Back to the top
