Article ID: 306345 - Last Review: August 11, 2006 - Revision: 5.2 PRB: ASP Error 80004005 "Data Source Name Not Found"This article was previously published under Q306345 On This PageSYMPTOMS When you use ActiveX Data Objects (ADO) or ODBC to open a
database connection in an Active Server Pages (ASP) page, you may receive the
following error message: Microsoft OLE DB Provider for
ODBC Drivers error '80004005' [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified. CAUSE This error can occur when you use a DSN-based connection
string (a connection string that uses a System DSN) or a DSN-less connection
string with ADO and ODBC to open a database connection in an ASP page. The
common causes of this error are listed below. Using an ODBC DSN
Using a DSN-Less Connection String
RESOLUTIONImportant This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base: 322756
(http://support.microsoft.com/kb/322756/
)
How to back up and restore the registry in Windows Using an ODBC DSNInsufficient Permissions to Read the DSN Registry KeyGrant the Windows NT 4.0 or Windows 2000 user account Read access to the specified ODBC System DSN registry key as follows:
Specified DSN Does Not Exist on the IIS ServerCreate the specified System ODBC DSN on the IIS Server.Global.asa Code to Initialize the ADO Connection String Is Not Running
Using a DSN-Less Connection StringInsufficient Permissions to Read the Specified ODBC Driver Registry KeyGrant the Windows NT 4.0 or Windows 2000 user account Read access to the specified ODBC Driver registry key as follows:
Driver Name Is Misspelled or Is Not Installed on the IIS ServerVerify that the ODBC Driver name is spelled correctly in the ADO connection string. In addition, verify that the specified driver is installed on the IIS Server. To view a list of ODBC drivers that are installed on a system, look in the ODBC Data Source Administrator (Odbcad32.exe) on the Drivers tab.Global.asa Code to Initialize the ADO Connection String Is Not Running
STATUS This behavior is by design. MORE INFORMATION The Windows NT 4.0 or Windows 2000 user account whose
credentials are used 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 example, if you use Anonymous authentication, the credentials of
the configured IIS Anonymous account (the IUSR_<WebServerName> account by default) is used to process the user request. When
you use Basic authentication, Microsoft Internet Explorer prompts the user to
supply a valid Windows NT 4.0 or Windows 2000 Network UserId and password whose
credentials are then used to process the request. For additional information
about the supported authentication mechanisms and how they work, refer to the
online IIS documentation. REFERENCESFor additional information, click
the article numbers below to view the articles in the Microsoft Knowledge Base:
188715
(http://support.microsoft.com/kb/188715/EN-US/
)
Global ASA Not Firing When Visual InterDev Made IIS 4.0 Application
288245
(http://support.microsoft.com/kb/288245/EN-US/
)
PRB: Global.asa Does Not Fire from Personal Web Server on Windows 98
265275
(http://support.microsoft.com/kb/265275/EN-US/
)
FP2000: Global.asa Does Not Run in FrontPage Web
APPLIES TO
| Article Translations
|

Back to the top
