BUG: User-defined Comments May Cause Syn Errors in Obj Scripts

Last reviewed: May 1, 1997
Article ID: Q136448

The information in this article applies to:
  • Microsoft SQL Server, versions 4.2x and 6.0
BUG# NT: 11189 (6.00)

SYMPTOMS

If you add user-defined comments to an object by inserting into the syscomments system table and a script is generated for this object, when you run the script against SQL Server version 4.2x you will get syntax errors using SQL Object Manager; or, when you run the script against SQL Server version 6.0, it will generate error 128 using SQL Server distributed management objects (SQL-DMO).

The user-defined comments will be inserted into the script with no comment marks and will cause the scripts not to create the objects.

WORKAROUND

When you insert the comments into the syscomments table, comment-out your comments by adding "/*" to the beginning of the comment and "*/" to the end. Then, when a script is generated, your comment is already commented out.

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.


Additional query words: sql6
Keywords : kbbug6.00 kbprg SSrvDMO SSrvProg
Version : 4.2 4.21 4.21a 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 1, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.