FIX: SELECT INTO Inside a Temp Sproc Causes Client to HangLast reviewed: April 8, 1997Article ID: Q151765 |
The information in this article applies to:
SYMPTOMSIn SQL Server version 6.5, executing a temporary sproc containing a SELECT INTO statement causes the client to stop responding. The server never finishes the execution and the control is not returned to the client. CPU utilization on the server computer goes above 95 percent and persists, with the result that the server slows down drastically. This does not prevent other clients from connecting to SQL Server, but the queries executed from these clients will be slow.
WORKAROUNDUse permanent stored procedure in place of temporary stored procedure. For ODBC clients, clear the Generate Stored Procedures for Prepared Statements option check box in the ODBC SQL Server Driver Setup dialog box, or set the SQL_USE_PROCEDURE_FOR_PREPARE option in the SQLSetConnectOption function to SQL_UP_OFF.
MORE INFORMATIONThis behavior is also seen in Microsoft SQL Server 6.0. With ODBC clients the same behavior is seen if:
and a SELECT INTO statement is prepared and executed.
STATUSMicrosoft has confirmed this to be a problem in Microsoft SQL Server versions 6.0 and 6.5. This problem has been corrected in U.S. Service Pack 1 for Microsoft SQL Server version 6.5. For more information, contact your primary support provider.
|
Additional query words: temporary stored procedure
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |