BUG: 32-bit ISQL.EXE Does Not Properly Set ERRORLEVELLast reviewed: April 30, 1997Article ID: Q121832 |
The information in this article applies to:
- Microsoft SQL Server version 4.21BUG# NT: 10377 (4.21)
SYMPTOMSThe 32-bit version of ISQL.EXE does not properly set ERRORLEVEL under certain conditions. If arguments or data for arguments are invalid, the ERRORLEVEL used for batch file processing under Windows NT is not set to 1. The following is an sample .CMD file run under Windows NT normally used for batch file processing:
echo off isql /Usa /P /i test.sql if errorlevel 1 echo Error! echo onIn this situation, TEST.SQL does not exist. Therefore, ISQL will display an error to stdout indicating an invalid input file. However, errorlevel is not set to 1.
WORKAROUNDUse the 16-bit MS-DOS or OS/2 version of ISQL.EXE on Windows NT.
STATUSMicrosoft has confirmed this to be a problem in ISQL version 4.21. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
|
Additional query words: Windows NT
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |