PRB: ISQL Without -U Parameter Uses Network User Name (135697)



The information in this article applies to:

  • Microsoft SQL Server 4.2x
  • Microsoft SQL Server 6.0
  • Microsoft SQL Server 2000 (all editions)

This article was previously published under Q135697

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.

Modification Type:MinorLast Reviewed:2/22/2005
Keywords:kbprb kbProgramming KB135697