Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

SQL Server Error 40 and Error 2

$
0
0

I've recently setup a new SQL server running Windows Server 2016 with SQL Server 2016. I'm using SSMS to migrate my old database but when I try to connect I get this error:

Cannot Connect to (servername)

Addition Information:

A network-related or instance-specific error occured 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)

The System cannot find the file specified.

So far I have:

Stopped and started the SQL Server in services.msc

Allowed remote connections and given specific access to all admin accounts

disabled windows firewall

turned on the named pipes

and tried both windows...


Viewing all articles
Browse latest Browse all 4871

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>