PRB: ISQL Without -U Parameter Uses Network User Name

Last reviewed: May 1, 1997
Article ID: Q135697

The information in this article applies to:
  • Microsoft SQL Server, versions 4.2x and 6.0

SYMPTOMS

The command line utility ISQL.EXE uses the currently logged in network user name for the SQL Server login name if the -U parameter is omitted or is specified without a name after the parameter instead of passing null.

This may cause the error 4002, 'Login Failed' when connecting to SQL Server in mixed security environments.

WORKAROUND

Change the SQL Server security to either Integrated or Standard modes, or use the -U parameter on ISQL to specify the correct SQL Server login name.

MORE INFORMATION

You can verify this problem by enabling auditing of Failed Logins in the Set Security Options dialog of SQL Server Setup.


Additional query words: mixed
Keywords : kbprg kbtool SSrvISQL
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.