We are upgrading our server from windows 2000 and IIS6 to windows 2008 R2 and IIS7.5.
Earlier our SQL DB was on same machine. But now we are configuring it on a seperate windows 2008 R2 machine.
So, we configured 32 bit version of ODBC to access SQL server. It uses windows authentication (it must use as per client requirement). IIS7.5 is configured to use windows authentication(it uses domain ID and this also a must as per client requirement).
When ASP try to access sql server it is fething following error(even though ASP and IIS is design/configure to save login detail):
Number Of Errors = 1 SQL State = 28000 Error #-2147217843 Description: [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'. NativeError: 18456 Reported by: Microsoft OLE DB Provider for ODBC Drivers Connection = DSN=sopnmui_systf5 Error Number = -2147217843 Error Description = [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'. Error Source = Microsoft OLE DB Provider for ODBC Drivers
We verified in the same ASP, it had session detail and able to print on screen. Have no idea how it translate from windows authentication to Anonymous.
I check following link and whatever it sugest, it is already configured:
http://vladimir.remenar.net/running-classic-asp-on-iis7/
Please see again I am using 32 bit ODBC to connect to SQL server 64 bit. We are forced to do so as our applicatipon is 32 bit and also it access a different kind(in-house develop 32 bit database system) of DB.