Sometimes this error happens when you start Windows and Open Microsoft SQL Server.
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 2)
Step 1
Step 2
Open Services from Windows Start menu
Step 3
Click connect SQL Server and it will work out
Thanks for reading the blog,
Zahid