Error 'Named Pipes Provider, error 40 - Could not open a connection to' SQL Server'?
- Ameni OUERTANI
- Oct 30, 2018
- 1 min read
fix the error 'named Pipes Provider, error : 40 - Could not open a connnnection to SQL Server (Microsoft SQL Server error: 2 !!

sometimes when trying to connect to SQL Server managment studio this error appears. For several reasons, first things to check:
If connection remotly, check if 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.
If none of this previous steps worked their magic, then solving this problem is very easy:
Go to control panel.
search for services.
Open Local services window from your search results
Restart your MSSQLSERVER service.

Comments