Lalit Rajput
Lalit Rajput

Reputation: 301

A network-related or instance-specific error occurred while establishing a connection to SQL Server 2014

This error was returned when I tried to connect with server. Error description is:

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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) (Microsoft SQL Server, Error: -1)

Upvotes: 3

Views: 34310

Answers (4)

Mrudul Bhatt
Mrudul Bhatt

Reputation: 1

If you are trying to connect to your Sql Server running on MacOS via Docker, then make sure that Sql Docker container is running and then you will be able to connect to your Sql Server using Azure Data Studio as shown in attached image Sql Container inside Docker

Upvotes: 0

abdul aquib
abdul aquib

Reputation: 17

To solve this error 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 Go to Sql Server Configuration Manager>>Sql Server Services Sql Server>>Right click on the Sql Server(MSSQLSERVER) and Start the Process.As show belowenter image description here

Upvotes: 0

Lalit Rajput
Lalit Rajput

Reputation: 301

First you need to check whether SQL SERVER service is running in your system or not .For checking follows below steps in Windows.

Step 1 : Type "window" button + R ,This will open Run prompt.

Step 2: Type "services.msc" in Run prompt and hit the enter.

Step 3: Find SQL SERVER service from there.

Step 4.Start this service.

Following these steps, I have resolved this problem in my machine.

Thanks

Upvotes: 5

SAM
SAM

Reputation: 835

  1. Check your SQL Server Service is Running or not
  2. if the server is in remote location check port 1433 is not blocked by the firewall.
  3. if this is not the default instance, Check SQL Server Browser is running or not
  4. Check the network connection on client PC, and verify the connection to the server using PING or TELNET
  5. Check whether TCP/IP and Named Pipes are enabled or not.

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

Upvotes: 2

Related Questions