SQL Network Interfaces Error 26 – Error Locating Server/Instance Specified

Common SQL Errors

Galaxy Team
June 25, 2025
Connection Error

Error 26 means the SQL Server client cannot find the requested server or named instance because of incorrect connection details, disabled protocols, or blocked ports.

Microsoft SQL Server
Sign up for the latest in common SQL errors from the Galaxy Team!
Welcome to the Galaxy, Guardian!
You'll be receiving a confirmation email

Follow us on twitter :)
Oops! Something went wrong while submitting the form.

What is SQL Network Interfaces Error 26 – Error Locating Server/Instance Specified?

SQL Network Interfaces Error 26 appears when a client cannot locate the SQL Server or named instance. Check the server/instance name, enable TCP and UDP 1434, start SQL Browser, and correct your connection string to remove the error.

Typical Error Message

A network-related or instance-specific error occurred while establishing a connection to SQL Server. Error 26 – Error Locating Server/Instance Specified.

Explanation

Table of Contents

What is SQL Network Interfaces Error 26 – Error Locating Server/Instance Specified?

Error 26 is raised by the SQL Browser component when a client library (SqlClient, ODBC, JDBC) cannot resolve the server or named instance in the connection string. The client sends a UDP packet to port 1434; if the browser or server does not respond, the connection fails.

The error is purely connection-level and occurs before authentication, so no SQL statements reach the server.

Fixing it is essential because user applications remain offline until connectivity is restored.

What Causes This Error?

Incorrect server or instance name prevents SQL Browser from matching the request, resulting in Error 26.

Typos, missing “\\” separators, or omitted instance names are frequent triggers.

Disabled or firewalled UDP 1434 blocks SQL Browser traffic, so the client never learns the port number of the named instance.

SQL Browser service stopped or misconfigured cannot reply to discovery requests, leading the client library to raise Error 26.

Disabled TCP/IP or Shared Memory protocols inside SQL Server Configuration Manager make the instance unreachable even when the name is correct.

How to Fix SQL Network Interfaces Error 26

Verify the connection string first.

Use the exact server name shown in SELECT @@SERVERNAME and include the instance (e.g., SERVERNAME\\DEV01).

Start the SQL Browser service from SQL Server Configuration Manager and set its startup type to Automatic so discovery packets are answered consistently.

Enable TCP/IP and UDP protocols for the instance, and open TCP 1433 and UDP 1434 in the Windows Firewall or network security groups.

For default instances, use only the server host name with port 1433 to bypass SQL Browser completely.

Common Scenarios and Solutions

Local development laptops often disable SQL Browser.

Enabling the service or switching to (local)\SQLEXPRESS fixes the issue quickly.

Cloud VMs running SQL Server behind a load balancer drop UDP. Configure an inbound rule for UDP 1434 or specify the port number explicitly in the connection string: tcp:myserver.database.windows.net,1433.

Docker containers expose SQL Server on a non-standard port.

Map the container port to the host and reference it: tcp:localhost,15789.

Best Practices to Avoid This Error

Always provide explicit port numbers in production connection strings to remove dependency on SQL Browser discovery.

Use Galaxy’s connection manager to store validated connection profiles.

The editor warns you of unreachable hosts before you run queries, reducing downtime.

Automate health checks that test UDP 1434 and TCP 1433 reachability after firewall changes or VM redeployments.

Related Errors and Solutions

Error 40 – Could not open a connection follows Error 26 when the browser responds but the TCP port is blocked. Opening port 1433 or enabling TCP fixes both.

Error 18456 – Login failed appears after Error 26 is cleared and authentication fails. Verify credentials and server logins.

.

Common Causes

Related Errors

FAQs

Does Error 26 mean SQL Server is down?

No. It only indicates the client cannot locate the server or instance. The server may be running but unreachable.

Is SQL Browser required in production?

You can bypass SQL Browser by using the default instance on port 1433 or by specifying the port number directly.

Can I fix Error 26 without restarting SQL Server?

Yes. Most fixes involve updating the connection string, enabling protocols, or starting SQL Browser—no restart required.

How does Galaxy help prevent Error 26?

Galaxy stores verified connection profiles and alerts you immediately if the target host or port is unreachable before query execution.

Start Querying with the Modern SQL Editor Today!
Welcome to the Galaxy, Guardian!
You'll be receiving a confirmation email

Follow us on twitter :)
Oops! Something went wrong while submitting the form.

Check out some other errors

Trusted by top engineers on high-velocity teams
Aryeo Logo
Assort Health
Curri
Rubie Logo
Bauhealth Logo
Truvideo Logo