BUG: Table Creation Deadlocks in Tempdb Leave Stray Tables

ID: Q151304


The information in this article applies to:

BUG#: 11342

SYMPTOMS

When a client repeatedly runs a stored procedure that creates tables in tempdb, and deadlocks are encountered on the tempdb system tables, the temp tables will not always be cleaned up when the stored procedure terminates (nor when the client disconnects).

This happens only on multiprocessor computers, but was replicated with SQL Server version 4.21a SP4 as well as 6.0 on Alpha, MIPS, and Intel computers. The problem also happens with both Windows NT 3.5 and 3.51, but was not replicated on any uniprocessor computer.


WORKAROUND

To avoid deadlock, trace flag 1204 should be used to detect and analyze the cause of deadlock condition.


STATUS

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

Additional query words: deadlock


Keywords          : kbprg SSrvLock kbbug6.00 
Version           : 6.0
Platform          : WINDOWS 
Issue type        : 

Last Reviewed: March 25, 1999