BUG: EXEC Long @string w/o Paran. Can Hang Server/Cause AV

Last reviewed: May 2, 1997
Article ID: Q150939

The information in this article applies to:
  • Microsoft SQL Server, version 6.0
BUG#: 12456 (6.00)

SYMPTOMS

Executing a long local string variable without parantheses can hang the server with SQL Server version 6.0, or generate a thread-level handled access violation (AV) with Service Pack 2 for SQL Server version 6.0. The client connection does not terminate completely and will appear to hang even though the client process has been terminated by SQL Server.

WORKAROUND

EXEC is documented to execute the string only with parantheses. Always execute the string within parantheses.

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.

This problem does not occur in Microsoft SQL Server version 6.5.

MORE INFORMATION

Executing a string variable without the parantheses can hang the server. It generates a "stored procedure %s not found" message if the string is < 128 characters; if the string >= 128 characters, it generates an Access Violation and hangs the server with the released version of SQL Server 6.0.

With the version 6.0 Service Pack 2 installed, it still generates the AV and hangs the client connection, but does not terminate the server.

Microsoft SQL Server version 6.5 generates error 8128 for this condition:

   Msg 8128, Level 16, State 1:
   Object identifier '%s' is longer than 124 bytes.


Additional query words: av client hang
Keywords : kbbug6.00 kbbug6.00.sp2 kbprg SSrvProg
Version : 6.0
Platform : WINDOWS
Issue type : kberrmsg


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: May 2, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.