BUG: SQLOLEDB Provider Ignores or Removes Trailing Spaces from Password on the Connection Open Method (304310)
The information in this article applies to:
- Microsoft OLE DB Provider for SQL Server 7.0
- Microsoft OLE DB Provider for SQL Server 7.01
This article was previously published under Q304310 SYMPTOMS If a Microsoft SQL Server password includes trailing
spaces, the OLE DB Provider for SQL Server (SQLOLEDB) ignores or removes those
spaces before it passes the credentials to the backend server. In addition, you
receive the following error message: Run-time error
'-2147217843(80040e4d)': Login failed for user 'UserName'. This
problem does not occur with OLE DB Provider for ODBC Drivers. RESOLUTION To work around this problem, use the OLE DB Provider for
ODBC Driver instead of the OLE DB Provider for SQL Server, or do not create
passwords with trailing spaces. STATUSMicrosoft has confirmed that this is a bug in the Microsoft
products that are listed at the beginning of this article.
REFERENCES
For additional information about opening ADO
connections, click the following article number to view the article in the Microsoft Knowledge Base:
168336
HOWTO: Open ADO Connection and Recordset Objects
Modification Type: | Major | Last Reviewed: | 11/5/2003 |
---|
Keywords: | kbbug kbnofix kbProvider KB304310 |
---|
|