PRB: ISQL Without -U Parameter Uses Network User Name
Article ID: 135697
Article Last Modified on 2/22/2005
APPLIES TO
- Microsoft SQL Server 4.21a Standard Edition
- Microsoft SQL Server 6.0 Standard Edition
- Microsoft SQL Server 2000 Standard Edition
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.
Additional query words: mixed
Keywords: kbprogramming kbprb KB135697