FIX: READTEXT After SELECT with HOLDLOCK Causes Error 1203

ID: Q199300


The information in this article applies to:
  • Microsoft SQL Server versions 6.5, 6.0

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 version 6.5. This problem has been corrected in U.S. Service Pack 5a for Microsoft SQL Server version 6.5. For information about downloading and installing the latest SQL Server Service Pack, see http://support.microsoft.com/support/sql/.

For more information, contact your primary support provider.

Additional query words: err message msg

Keywords : SSrvTran_SQL kbbug6.50 kbfix6.50.SP5
Version : winnt:6.0,6.5
Platform : winnt
Issue type : kbbug


Last Reviewed: November 17, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.