PRB: 80004005 ConnectionOpen (CreateFile()) Error Accessing SQL

ID: Q175671


The information in this article applies to:


SYMPTOMS

When you try to open a connection to a Microsoft SQL Server database from an Active Server Pages (ASP) page, you get the following error:

Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC SQL Server Driver][dbnmpntw]ConnectionOpen
(CreateFile()).

NOTE: This article assumes SQL Server is using standard security.


CAUSE

Microsoft Windows NT Server is denying access to the SQL Server. This error can be caused by the way Users, Groups, Rights, and Permissions are configured. Specifically, Microsoft Internet Information Server (IIS) does not have permissions to open a Named Pipe connection to the SQL Server.


RESOLUTION

If the ASP page was accessed anonymously, then the Windows NT/SQL Server computer needs to be able to authenticate the anonymous logon account. To do this use one of the following methods:

If the ASP page requires authentication and any of the following is true, the error involves a Windows NT delegation issue where the security credentials are lost:
To resolve this, use one of the following methods:


STATUS

This is by design.


MORE INFORMATION

When you authenticate a user with Windows NT Challenge Response, the user needs the Access this Computer from Network right. When you authenticate a user with Basic (Clear Text), the user needs the Log on Locally right.

To set these rights:

  1. Open User Manager.


  2. Select User Rights from the Policies menu.


  3. Select which right you want to change from the drop-down menu, then select which users or groups have this right.



REFERENCES

For additional information, please see the following articles in the Microsoft Knowledge Base:

Q166029 : PRB: Cannot Open File Unknown Using Access

Q174811 : FILE: Authentication and Security for Internet Developers

For the latest Knowledge Base articles and other support information on Visual InterDev and Active Server Pages, see the following page on the Microsoft Technical Support site:
http://support.microsoft.com/support/vinterdev/

Additional query words:


Keywords          : kbcode kberrmsg kbADO kbASPObj kbSecurity kbSQLServ kbGrpASP FTAuthent 
Version           : winnt:
Platform          : winnt 
Issue type        : kbprb 

Last Reviewed: May 27, 1999