FIX: READTEXT After SELECT with HOLDLOCK Causes Error 1203 (199300)
The information in this article applies to:
- Microsoft SQL Server 6.5
- Microsoft SQL Server 6.0
This article was previously published under Q199300
BUG #: 14227 (SQLBUG_65)
SYMPTOMS
A query may encounter error 1203 if all of the following conditions are true: - The query has a user defined transaction (for example, a BEGIN TRAN or SET IMPLICT_TRANSACTIONS ON).
- The query does a SELECT on a table that has text/image columns, with the HOLDLOCK locking hint.
- The query does a READTEXT operation on the same table.
The following is error 1203:
Caller of lock manager is incorrectly trying to unlock an unlocked object. spid=%d locktype=%d dbid=%d lockid=%Id
WORKAROUND
To work around this problem, do either of the following: - Do not use the HOLDLOCK option during the SELECT.
-or-
- Do not do the SELECT and the READTEXT operation in the same transaction.
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 INF: How to Obtain SQL Server 6.5 Service Pack 5a For more information, contact your primary support provider.
Modification Type: | Major | Last Reviewed: | 3/14/2006 |
---|
Keywords: | kbBug kbfix KB199300 |
---|
|