PRB: ISQL Without -U Parameter Uses Network User Name

ID: Q135697


The information in this article applies to:


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 
Issue type        : 

Last Reviewed: April 16, 1999