The information in this article applies to:
SYMPTOMS
A stored procedure that creates one or more temporary tables generates
EX_PAGE locks on syscolumns, sysobjects, and sysindexes in tempdb when
invoked as part of an INSERT INTO EXECUTE statement. This behavior occurs
even if the stored procedure does not explicitly define transactions. This
problem may place undesirable constraints on concurrent access to tempdb.
Running the same stored procedure independently of the INSERT INTO EXECUTE
statement does not result in this kind of locking.
CAUSE
This behavior is caused by the advanced support for the data definition
language (DDL) within transactions in SQL Server 6.5. See "Data Definition
Language in Transactions" in "What's New in SQL Server 6.5," (in the Books
OnLine).
WORKAROUND
To work around this problem, do either of the following:
MORE INFORMATION
Trace flag 5302 does not affect this behavior. For more information on
Trace flag 5302, see the following article in the Microsoft Knowledge Base:
Q153441 : FIX: SELECT INTO Locking Behavior
Keywords : kbusage SSrvStProc SSrvTran_SQL |
Last Reviewed: April 8, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |