BUG: Long Comments Can Break Object Code

Last reviewed: May 2, 1997
Article ID: Q147937

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

SYMPTOMS

SQL Enterprise Manager (SEM) and ISQL/w can create objects such as views, rules, defaults, stored procedures, or triggers whose object code is nonsensical in syscomments if long comments (defined by /* */ or --) exist with the object creation script. Recreating the object with this code would cause a syntax error. This behavior can be viewed by using the corresponding edit object feature in SEM or running sp_helptext on the object from any client application. This behavior was seen with a comment of 966 to 1010 bytes in size and depends on the length of the object name.

WORKAROUND

Shorten or break up the comment or recreate the object with ISQL.EXE.

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.

MORE INFORMATION

See Knowledge Base article Q147829, "PRB: sp_helptext Appears to Add <CR> to Creation Script Results" for more information about problems viewing object code with sp_helptext.


Additional query words: sql6 sp_helptext
Keywords : kbbug6.00 kbtool SSrvEntMan
Version : 6.0
Platform : WINDOWS


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.