Article ID: 307002 - Last Review: July 16, 2004 - Revision: 2.3 PRB: ASP/ODBC/SQL Server Error 0x80040E4D "Login Failed for User '(Null)'"This article was previously published under Q307002 SYMPTOMS
If you try to use an ODBC Data Source Name (DSN) to open an ActiveX Data Objects (ADO) connection to a SQL Server database from an Active Server Pages (ASP) page, you may receive the following error message:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E4D) [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection. CAUSE
This error can occur under the following circumstances:
RESOLUTION
To resolve this problem, use one of the following methods:
STATUS
This behavior is by design.
MORE INFORMATION
The Windows NT/Windows 2000 user account that IIS uses to process a request for an ASP page is determined by the authentication mechanism that the Web server uses to authenticate the user request. For instance, when you use Anonymous authentication, the credentials of the configured IIS Anonymous account (which is the ISR_<WebServerName> account by default) are used to process the user request. When you use Basic authentication, Microsoft Internet Explorer prompts the user to supply a valid Windows NT/Windows 2000 Network User ID and Password whose credentials are then used to process the request. Refer to the online IIS documentation for additional information about the supported authentication mechanisms and how they work. REFERENCESFor additional information, click the article number below
to view the article in the Microsoft Knowledge Base:
176377
(http://support.microsoft.com/kb/176377/EN-US/
)
INFO: Accessing SQL Server with Integrated Security from ASP
APPLIES TO
| Article Translations
|

Back to the top
