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:
What else can I do here?
Check the TCP/IP and Named Pipes protocols and port. Open SQL Server Configuration Manager and check the SQL Server Network Configuration protocols. You should enable Named Pipes and TCP/IP protocol. For the TCP/IP protocol, right click and select properties to check the TCP/IP communication port as well.
Make sure that the State of both SQL Server and SQL Server Browser is Running and that Start mode is set to Automatic. From the navigation tree on the left, select SQL Server Network Configuration and select the current instance. Right-click the protocol Named Pipes and click Enabled.
Solving this problem is very easy:
Screenshot of the steps:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With