PRB: Unable to Connect to SQL Server Through ODBC When Password Contains a Semi-colon (301076)
The information in this article applies to:
- Microsoft SQL Server 7.0
- Microsoft SQL Server 2000 (all editions)
This article was previously published under Q301076 SYMPTOMS
When you use SQL Server Authentication, a computer running SQL Server allows login passwords to be defined with semi-colons. When you attempt to connect to a SQL Server server through ODBC or OLEDB by using a SQL Server login whose password contains a semi-colon, an error message similar to the following occurs:
Unable to connect to server <servername>:
Server: Msg 18456, Level 16, State 1
[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user '<username>'.
This error message occurs when you use either the Query Analyzer or the SQL Enterprise Manager.
CAUSE
ODBC interprets the semi-colon as the end of the password, not part of the password itself.
RESOLUTION
Change the password and remove the semi-colon.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 10/30/2003 |
---|
Keywords: | kbprb KB301076 |
---|
|