Re: DSN Error Connecting to Sql Server, Trusted Connection Error
From: Ryan Waight (Ryan_Waight_at_nospam.hotmail.com)
Date: 11/07/03
- Next message: Bob Frasca: "Linked server problems"
- Previous message: David P: "Re: HELP! Using IIS+ISAPI DLL w/ODBC on SQL 2000"
- In reply to: Earl Teigrob: "DSN Error Connecting to Sql Server, Trusted Connection Error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 7 Nov 2003 14:57:47 -0000
I think this is due to the following :-
When you TEST CONNECTION it goes with your user credentials.
When your ASP page connects it will be going in the context of the IIS
Server . IUSR_.....
Ensure the IUSR_ account has SQL permission.
-- HTH Ryan Waight, MCDBA, MCSE "Earl Teigrob" <earlt777@hotmail.com> wrote in message news:ualDdw6oDHA.1072@TK2MSFTNGP09.phx.gbl... > I am try to connect to a SQL Database on a differect Domain. A Dsn entry > gives me an error but a connection string works fine. The application we are > using requires a DSN > > 1. I can connect to the database just fine using a connection string that > includes the username and password > > 2. When I set up the DSN and press test, it tests successful > > 3. When I use the DSN in my asp code, it gives the following error. > ------------------------------- > Microsoft OLE DB Provider for ODBC Drivers error '80040e4d' > > [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user > '(null)'. Reason: Not associated with a trusted SQL Server connection. > > /_landingPg/Default.asp, line 26 > > ------------------------------------------- > >
- Next message: Bob Frasca: "Linked server problems"
- Previous message: David P: "Re: HELP! Using IIS+ISAPI DLL w/ODBC on SQL 2000"
- In reply to: Earl Teigrob: "DSN Error Connecting to Sql Server, Trusted Connection Error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|