I upgraded SQLServer 2000 database to SQLServer2012. After that IIS started throwing error:
Error: ERROR#1: return code:0, State:28000, Native Error Code:18456: Message:[Microsoft][SQL Server][SQL Server]Login failed for user ''. ERROR#2: return code:100, State:00000, Native Error Code:18456: Message:
- I can connect to the remote SQLServer 2012 database via ODBC 64 bit and 32 bit tool from IIS server with same user . No issues. is migrated from SQL Server 2000 to SQL Server 2012.
- Able to connect remotely using the same user via sqlcmd.
- Connected via Excel to the database using all connection tests works except IIS.
I created new user in SQLServer 2012 database and got the same error.
IIS configuration info below:
<CfgSpecDataSource>
<Connection>
DRIVER=SQL Server; SERVER=Server_IP; DATABASE=DB_NAME; UID=<db_user>; PWD=passed;</Connection>
</CfgSpecDataSource>
I have mixed mode authentication (windows/sql server) defined on the sql instance.
Tried changing DRIVER=SQL Server Native Client 11.0 and got stuck with 18456 error;