A Network-Related or Instance-Specific Error Occurred While Establishing A Connection To SQL Server
A Network-Related or Instance-Specific Error Occurred While Establishing A Connection To SQL Server
The error usually means that the “SQL server is not found” or “TCP port is
either unknown or wrong”, or it can be blocked by the “firewall”.
1 of 19 16-01-2021, 15:04
How to Fix the Error 'A Network-related or Instance-specific Error occur... https://appuals.com/how-to-fix-the-error-a-network-related-or-instance-s...
2. Now point to the SQL Server, and then point to “Configuration tools”
4. Now select “SQL Server services” and check in the right pane whether
the instance of a database engine is running or not.
Now, check if the database engine has been configured to accept remote
connections. To check this, follow the following steps.
2 of 19 16-01-2021, 15:04
How to Fix the Error 'A Network-related or Instance-specific Error occur... https://appuals.com/how-to-fix-the-error-a-network-related-or-instance-s...
1. After services have been opened you can see database engine in the
right pane. The “MSSQLSERVER” is a default unnamed instance. A
default instance can only be one.
3. Check if the instance you are trying to connect has the same name as
given in the services.
6. In case, the database engine is not running then you need to restart it. So
to start the “Database Engine”, in the right pane, right-click on the
“Database Engine” (“MSSQLSERVER” default one), and then click
“Start”.
3 of 19 16-01-2021, 15:04
How to Fix the Error 'A Network-related or Instance-specific Error occur... https://appuals.com/how-to-fix-the-error-a-network-related-or-instance-s...
1. First of all, from the start menu, click “RUN” and type “cmd” and press
ok.
2. In command prompt window type “ipconfig” and note down IPV4 and
IPV6 addresses. People mostly use IPV4 address.
4 of 19 16-01-2021, 15:04
How to Fix the Error 'A Network-related or Instance-specific Error occur... https://appuals.com/how-to-fix-the-error-a-network-related-or-instance-s...
3. To apply filer click apply filter and type ” server is listening on” in
Message contains text box. Click apply filter and press ok.
5 of 19 16-01-2021, 15:04
How to Fix the Error 'A Network-related or Instance-specific Error occur... https://appuals.com/how-to-fix-the-error-a-network-related-or-instance-s...
5. For more than one instance TCP port will be different for each instance.
6 of 19 16-01-2021, 15:04
How to Fix the Error 'A Network-related or Instance-specific Error occur... https://appuals.com/how-to-fix-the-error-a-network-related-or-instance-s...
3. Point towards “Configuration tools”, and after this click “SQL Server
Configuration Manager”.
7 of 19 16-01-2021, 15:04
How to Fix the Error 'A Network-related or Instance-specific Error occur... https://appuals.com/how-to-fix-the-error-a-network-related-or-instance-s...
7. Choose the “IP Address tab” from the window and set “TCP Port” equal
to “1433″ in the “IP All” entry.
8 of 19 16-01-2021, 15:04
How to Fix the Error 'A Network-related or Instance-specific Error occur... https://appuals.com/how-to-fix-the-error-a-network-related-or-instance-s...
9 of 19 16-01-2021, 15:04
How to Fix the Error 'A Network-related or Instance-specific Error occur... https://appuals.com/how-to-fix-the-error-a-network-related-or-instance-s...
Opening “Firewall.cpl”
2. You get the “configuration frame” for Windows Firewall by running the
“firewall.cpl” command. You may turn the firewall “on/off” with
exceptions and other settings applied here. Check the firewall status and
turn it on to activate it if the firewall is off. If you’ve just turned this on,
your firewall will block any “SQL Server” connection request to your
computer at this point. Through making certain exceptions, you’d need
to configure the firewall to allow access to a SQL Server database engine.
10 of 19 16-01-2021, 15:04
How to Fix the Error 'A Network-related or Instance-specific Error occur... https://appuals.com/how-to-fix-the-error-a-network-related-or-instance-s...
4. We need to learn about the ports used for “SQL Server” and the “SQL
Server Browser” feature when dealing with “SQL Server” firewall
configurations. Both are involved in setting up a “firewall” for the “SQL
Server” . It would, therefore, be necessary to go separately through both
concepts.
11 of 19 16-01-2021, 15:04
How to Fix the Error 'A Network-related or Instance-specific Error occur... https://appuals.com/how-to-fix-the-error-a-network-related-or-instance-s...
5. You may permit or block traffic attempts that meet the requirements in t
he rule to access the computer. By default
“inbound traffic” is blocked, you need to establish “inbound rule” to allo
w traffic to reach the computer.
Tap the Inbound Rules from the left pane of the “Windows Firewall with
Advanced Security” and click the New Rule from the “Actions” window.
12 of 19 16-01-2021, 15:04
How to Fix the Error 'A Network-related or Instance-specific Error occur... https://appuals.com/how-to-fix-the-error-a-network-related-or-instance-s...
13 of 19 16-01-2021, 15:04
How to Fix the Error 'A Network-related or Instance-specific Error occur... https://appuals.com/how-to-fix-the-error-a-network-related-or-instance-s...
8. Now select
“Allow the connection” in the “Action” dialog and press the Next button
selecting “Allow the connection”
14 of 19 16-01-2021, 15:04
How to Fix the Error 'A Network-related or Instance-specific Error occur... https://appuals.com/how-to-fix-the-error-a-network-related-or-instance-s...
Click “customize”
15 of 19 16-01-2021, 15:04
How to Fix the Error 'A Network-related or Instance-specific Error occur... https://appuals.com/how-to-fix-the-error-a-network-related-or-instance-s...
12. Select
“Database Engine Instance Service” from the “Customize Service Settin
gs” under “Apply to this service” and click the “OK” button
Select “Database Engine Instance Service” from the “Customize Service Settings” under
“Apply to this service” and click the “OK” button
16 of 19 16-01-2021, 15:04
How to Fix the Error 'A Network-related or Instance-specific Error occur... https://appuals.com/how-to-fix-the-error-a-network-related-or-instance-s...
17 of 19 16-01-2021, 15:04
How to Fix the Error 'A Network-related or Instance-specific Error occur... https://appuals.com/how-to-fix-the-error-a-network-related-or-instance-s...
The error arises while locally connecting to SQL server with the wrong server
name In case you are using express edition following your server name, add
“\SQLEXPRESS” as seen in the figure below.
18 of 19 16-01-2021, 15:04
How to Fix the Error 'A Network-related or Instance-specific Error occur... https://appuals.com/how-to-fix-the-error-a-network-related-or-instance-s...
Read Next
Fix: Oops… a server error occurred and your email was not sent (#707)
Fix: oops... a server error occurred and your email was not sent. (#007)
dd • 12 days ago
Super helpful
• Reply • Share ›
19 of 19 16-01-2021, 15:04