FIX: GUI Tools Using Query Window Don't Retain Text Formatting

Last reviewed: April 29, 1997
Article ID: Q117770

The information in this article applies to:

  - Microsoft SQL Server Programmer's Toolkit, version 4.21

BUG# NT: 10067 (4.21)

SYMPTOMS

Text formatting is not retained when you execute a CREATE PROCEDURE or CREATE TRIGGER query from ISQL/W, SQL Administrator, or SQL Object Manager using the Query Window in Microsoft SQL Server version 4.21.

This problem exists in both 16- and 32-bit versions of the GUI tools, but does not occur using ISQL.EXE from MS-DOS, Windows NT, or OS/2. The problem also occurs with version 4.20.50 of the tools.

CAUSE

Whitespace holders, such as tabs or spaces, that come after a <cr><lf> and before the first character on the new line are not stored in syscomments when run from the Query Window.

WORKAROUND

Use the ISQL.EXE utility to execute queries and retain proper text formatting. You can also use the SQL Object Manager utility by selecting the Manage/Stored Procedure menu option.

STATUS

Microsoft has confirmed this to be a problem in SQL Server version 4.21. This problem was corrected only in the SQL Server 6.0 tools 32-bit ISQL/W and SQL Enterprise Manager. For more information, contact your primary support provider.


Additional query words: format indentation
Keywords : kbbug4.21 kbfix6.00 kbtool SSrvISQL SSrvSQL_Admin SSrvWinNT
Version : 4.21
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: April 29, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.