BUG: Repeated Deadlocks May Cause Error 925

ID: Q122953


The information in this article applies to:

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:

Additional query words: Windows NT


Keywords          : kbprg SSrvStProc kbbug4.20 SSrvTran SSrvWinNT 
Version           : 4.2 4.21 4.21a
Platform          : WINDOWS 
Issue type        : 

Last Reviewed: April 16, 1999