BUG: Repeated Deadlocks May Cause Error 925

Last reviewed: April 30, 1997
Article ID: Q122953

The information in this article applies to:
  • Microsoft SQL Server, version 4.2
BUG# NT: 939 (4.2)

SYMPTOMS

A call to a stored procedure that in turn calls another stored procedure can, in some cases, generate error 925:

   Maximum number of used databases for each query has been exceeded.
   The maximum allowed is %d.

CAUSE

SQL Server is not correctly freeing the data structures used to maintain information for each database when the called stored procedure fails with a deadlock.

WORKAROUND

Reestablish your connection to SQL Server in order to get a new spid.

STATUS

Microsoft has confirmed this to be a problem in Microsoft SQL Server version 4.2. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Given two stored procedures, CALLED and CALLER, where procedure CALLED is called by procedure CALLER error 925 will occur if:

  • Procedure CALLER and procedure CALLED exist in two separate databases.
  • Procedure CALLER calls procedure CALLED repeatedly utilizing the same connection to the server (spid).
  • Procedure CALLED fails because of a deadlock that generates error 1205:

          Your server command (process id #%d) was deadlocked with another
          process and has been chosen as deadlock victim. Re-run your command.
    


Additional query words: Windows NT
Keywords : kbbug4.20 kbprg SSrvStProc SSrvTran SSrvWinNT
Version : 4.2 4.21 4.21a
Platform : WINDOWS
Issue type : kberrmsg


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: April 30, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.