INF: IIS Queries to SQL Server Generate Error 1326ID: Q152828
|
When you use anonymous connections for IIS and you attempt to query remote
SQL servers using named pipes, the following error may occur:
[State =01000][Error=1326][Microsoft][ODBC SQL Server Driver]
[SQL Server][dbnmpntw] ConnectionOpen (CreateFile())
In order for a SQL server client to gain access to a Windows NT named pipe,
the client needs to be validated by the Windows NT server. This is normally
accomplished through a Workgroups style validation method where identical
usernames and passwords are created on the client and the server, or the
domain method where both the client and server are domain members.
The Internet Information Server (IIS) setup process creates a Windows NT ID
called IUSR_machinename (where machinename is the name of the Windows NT
server), and adds that user to the Guest local group. The IIS service runs
under this Windows NT account name.
If the connection to IIS is anonymous, IIS uses the Windows NT account
IUSR_machinename and so any network activity performed by IIS is done
under this account ID.
If the SQL server resides on the same server as IIS, then named pipes
connections work and validation is successful.
If the SQL server resides on a separate server from IIS, then the
IUSR_machinename account needs to be validated on the Windows NT server
that SQL resides on.
This validation can be implemented by several methods:
Q142868 : IIS: Authentication & Security Features
Additional query words: ODBC IIS
Keywords :
Version : 4.21 6.0 6.5
Platform : WINDOWS
Issue type :
Last Reviewed: March 29, 1999