bslintx2021
Technical User
My question is similar to to some forum questions but could not find exact scenario...I believe I am getting a double hop issue and need help to configure IIS and SQL server correctly to allow to display SQL query results on web page
* Have no choice but to use Classic ASP technology and I ran simple asp code to ensure it is working - this have been verified
* SQL server is in mixed mode authentication
* It's been years...but I used to use a trusted connection and it worked...I did not create a SQL user
Class asp SQL connection code
If I set Anonymous Authentication then the following error:
If no anonymous or win authentication I get:
If Windows authentication I get
I am using Microsoft SQL Server Management Studio and IIS Manager
So, basically...would need help to determine what config changes are needed to connect a IIS 10 web page... using classic asp/ado connection to a MSSQL server set up as mixed mode
Thanks!
* Have no choice but to use Classic ASP technology and I ran simple asp code to ensure it is working - this have been verified
* SQL server is in mixed mode authentication
* It's been years...but I used to use a trusted connection and it worked...I did not create a SQL user
Class asp SQL connection code
Code:
<%
Set objConnection=Server.CreateObject("ADODB.connection")
ConnectionString = "Provider=SQLOLEDB;Server=my_Server;Database=my_database;Trusted_Connection=yes;"
objConnection.Open ConnectionString
%>
If I set Anonymous Authentication then the following error:
Microsoft OLE DB Provider for SQL Server error '80040e4d'
Login failed for user 'domain\web_server$'.
If no anonymous or win authentication I get:
HTTP Error 401.2 - Unauthorized
You are not authorized to view this page due to invalid authentication headers.
If Windows authentication I get
Microsoft OLE DB Provider for SQL Server error '80040e4d'
Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
I am using Microsoft SQL Server Management Studio and IIS Manager
So, basically...would need help to determine what config changes are needed to connect a IIS 10 web page... using classic asp/ado connection to a MSSQL server set up as mixed mode
Thanks!