Windows 7, IIS 7.5, SQL Server 2008 R2, ASP classic (website I want to upgrade, but need to make it works).
connection string:
Provider=SQLNCLI10; Data Source=.\SQLExpress; Initial Catalog=shoshvi_sql-db;Integrated Security=SSPI;Connect Timeout =1
I am getting this annoying error:
Microsoft SQL Server Native Client 10.0 '80004005'
Named Pipes Provider: Could not open a connection to SQL Server [53].
filename.asp, line 15
What I tried, as I remember:
- Test connection using SSMS (works, to localhost and to other server in LAN)
- Test connection using SQLCMD (works, to localhost and to other server in LAN)
- Tried many datasources/servers (
name\SQLExpress
,.\SQLExpress
, .\SQLEXPRESS) - Tried to change settings in Start Menu\Programs\Microsoft SQL Server 2008\Configuration Tools, enable TCP/IP, Named Pipes, look all sub items and find wrong configuration. after any change, I was restarted service.
- Tried to enable SQL Server Browser.
- Tried to connect to other SQL Server in the same network, using SA and SA password (in the other "server" I could use IIS/ASP/MSSQL and works fine).
- Tried to disable Windows Firewall
- Tried to enable remote connections to SQL Server Express
- Tried Integrated Security=SSPI
- Tried Windows Administrator password
- Tried change to TCP/IP (and get other error, same reason)
- Tried to search google, and stackOverflow and other for an idea.
- Tried similar questions here.
What more?
Thanks !