FIX: SELECT INTO Locking BehaviorID: Q153441
|
In SQL Server 6.5, SELECT INTO wraps within a transaction. Tables created by using SELECT INTO hold to the ACID (atomicity, consistency, isolation, durability) transaction properties. This also means that system resources, such as pages, extents, and locks, are held for the duration of the SELECT INTO statement. With larger system objects, this leads to the condition where many internal tasks can be blocked by other users performing SELECT INTO statements. For example, on high-activity servers, many users running the SQL Enterprise Manager tool to monitor system processes can block on each other, which leads to a condition where the SEM application appears to stop responding.
When you upgrade to SQL Server 6.5 Service Pack 1, SELECT INTO locking
characteristics is a system settable feature. Wrapping the SELECT INTO with
a transaction remains the default behavior. For users wishing not to hold
system catalog locks on the activity, a trace flag has been added to allow
for such operations. To apply the trace flag, start the server with the
-T5302 command line parameter, or from within a query window, use the
following commands:
dbcc traceon (3604)
go
dbcc traceon (5302)
go
Additional query words: sp1 TSQL
Keywords : kbnetwork SSrvLock SSrvTran_SQL kbfix6.50.sp1
Version : 6.5
Platform : WINDOWS
Issue type :
Last Reviewed: March 30, 1999