FIX: Error 1203 Occurs with Trace Flag 5302

ID: Q243050


The information in this article applies to:
  • Microsoft SQL Server version 6.5

BUG #: 18843 (SQLBUG_65)

SYMPTOMS

Microsoft SQL Server 6.5 may return the following 1203 error, which is then followed by other errors that indicate the client was disconnected.

Server: Msg 1203, Level 20, State 2, Line 1 Caller of lock manager is incorrectly trying to unlock an unlocked object. spid=10 locktype=4 dbid=2 lockid=16003088.
This error occurs if the following conditions are met:
  • The SQL Server is a post service pack 5 (SP5) build between 433 and 456.


  • The user session or the server use trace flag 5302.


  • The query uses SELECT INTO.


  • The query contains a UNION.


  • The second SELECT of the UNION contains an aggregate function (for example, SUM).



RESOLUTION

A supported fix that corrects this problem is now available from Microsoft, but it has not been fully regression tested and should be applied only to systems experiencing this specific problem. If you are not severely affected by this specific problem, Microsoft recommends that you wait for the next SQL Server service pack that contains this fix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the fix. For a complete list of Microsoft Product Support Services phone numbers and information on support costs, please go to the following address on the World Wide Web:

http://www.microsoft.com/support/supportnet/overview/overview.asp
The English version of this fix should have the following file attributes or later:

   
   Date      Time     Version    Size       File name      Platform
   ----------------------------------------------------------------

   09/10/99  4:00pm   6.50.457   2.557.200  Sqlservr.exe   (x86)
   09/10/99  3:58pm   6.50.457   4.066.064  Sqlservr.exe   (Alpha)
 
NOTE: Due to file dependencies, the most recent hotfix or feature that contains the preceding files may also contain additional files.


WORKAROUND

Avoid the conditions listed in the SYMPTOMS section. For example, avoid the UNION by using INSERT ... SELECT for the second query in the UNION.


STATUS

Microsoft has confirmed this to be a problem in SQL Server version 6.5.

Additional query words:

Keywords : SSrvProg kbSQLServ650bug
Version : winnt:6.5
Platform : winnt
Issue type : kbbug


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