HowardMarks
MIS
Dear All
I wonder if anyone could help guide me through a problem with connecting to sql server through an ASP page. I am pretty much a novice when it comes to SQL server administration and I can't fathom this out to save my life.
Here's the setup we have, and what SHOULD happen
one server, WS04, running IIS and serving the intranet pages
another server WS05, running SQL server database for intranet.
Users connect to the intranet, using integrated Windows authentication to identify them with their Active Directory account. No problems with this step.
WS04 should then connect to the database on WS05 using a system DSN on WS04 with a single SQL server account regardless of which user is logged in. Here's where the problem is.
If I choose windows authentication for the database, it works, but this means adding in SQL accounts for every Active directory user, which we don't want to do.
However, if I use basic authentication, using an account called 'intranet' which I have set up for the database, i get
Microsoft OLE DB Provider for SQL Server (0x80040E4D)
Login failed for user 'intranet'.
I am guessing this may be something to do with a clash between using the windows authentication against IIS but basic authentication against SQL Server? I've tried pretty much everything I can think of but my lack of experience is showing pretty badly.
Can anyone point me in the right direction?
Thanks in advance
Nick (Webmaster)
I wonder if anyone could help guide me through a problem with connecting to sql server through an ASP page. I am pretty much a novice when it comes to SQL server administration and I can't fathom this out to save my life.
Here's the setup we have, and what SHOULD happen
one server, WS04, running IIS and serving the intranet pages
another server WS05, running SQL server database for intranet.
Users connect to the intranet, using integrated Windows authentication to identify them with their Active Directory account. No problems with this step.
WS04 should then connect to the database on WS05 using a system DSN on WS04 with a single SQL server account regardless of which user is logged in. Here's where the problem is.
If I choose windows authentication for the database, it works, but this means adding in SQL accounts for every Active directory user, which we don't want to do.
However, if I use basic authentication, using an account called 'intranet' which I have set up for the database, i get
Microsoft OLE DB Provider for SQL Server (0x80040E4D)
Login failed for user 'intranet'.
I am guessing this may be something to do with a clash between using the windows authentication against IIS but basic authentication against SQL Server? I've tried pretty much everything I can think of but my lack of experience is showing pretty badly.
Can anyone point me in the right direction?
Thanks in advance
Nick (Webmaster)