I can't seem to connect to my database from a site. I get this error:
Named Pipes Provider, error: 40 - Could not open a connection to SQL Server
I tried using the local IP address to connect as well as a public one. I've tried:
- Yes, the site can communicate with the server
- Named pipes/TCP is enabled.
- Remote connections are allowed.
- Windows Firewall is off
- Created an exception for port 1433 in Windows Firewall.
- Enabled everything in SQL Server Configuration Manager.
What else can I do here?
Did have the same problem. Spent like 6 hours when had to migrate some servers. Tried all suggestions available on this topic and others.
Solution was as simple as server restart!
I had the same problem. I use the MSSQL Server Management Studio 2017 and solved this problem using these steps:
and fixed it.
Thanks to Damian...
TCP/IP Named Pipes ... both enabled
Web Config....(for localhost)