0

Installed SQL Server 2014 Enterprise version on two computers, trying to remotely access the database in one of the computers through the other.

Getting this error message:

A network related or instance specific error occurred while established a connection to SQL Server. The server was not found or accessible. Verify that instance name is correct and SQL Server is allowed to connect through remote connection (provider:-namedpipeprovider, error:-40, could not open a connection to SQL Server (Microsoft SQL Server, error-2)

From my online research, I did the following things

  1. Checked if SQL Server and browser service is running.

  2. Changed the port numbers in the windows firewall for inbound/outbound connections

  3. Enabled TCP/IP ports

Not sure how to rectify the error, please help!

Thanks in advance!

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Give_me_data
  • 37
  • 10

2 Answers2

1

Check out the answer in this post. it's pretty in-depth as to what all needs to be setup correctly. By default SLQ Server is pretty well locked down for local access only.

Why am I getting "Cannot Connect to Server - A network-related or instance-specific error"?

Community
  • 1
  • 1
Mike Chilson
  • 91
  • 1
  • 2
0

To connect to SQL server from another computer, You might need 2 more steps:

  1. Change port numbers in the firewall is not enough, make sure that you have enabled TCP/IP connections in SQL Server Configuration Manager
  2. Configure SQL Server to listen on the specific port that you need.
Bitty Bug
  • 1
  • 1