Core component of SQL Server for storing, processing, and securing data
The error indicates that the client cannot reach the specified SQL Server instance over Named Pipes/TCP. Common causes are wrong server/instance name, SQL Server not running, or network/firewall/protocol configuration issues.
Use these steps to troubleshoot and fix it:
- Verify the SQL Server instance name
- On the SQL Server machine, open SQL Server Configuration Manager.
- Go to SQL Server Services and check the service name:
- SQL SERVER (MSSQLSERVER) = default instance → connect using just the computer name.
- SQL SERVER (<instance name>) = named instance → connect using
<ComputerName>\<InstanceName>.
- Make sure the instance name in the connection (SSMS, app connection string, Power BI, etc.) matches exactly.
- Confirm SQL Server is installed and running
- In SQL Server Configuration Manager, ensure the SQL Server service for that instance is Running.
- If it is stopped, start it and then retry the connection.
- If only SQL Server Management Studio (SSMS) was installed but no SQL Server engine, install SQL Server; SSMS alone cannot host databases.
- Check network reachability and server name
- If connecting remotely, verify the computer name or IP address is correct.
- From the client machine, test basic connectivity (for example, ping the server or otherwise verify the machine is reachable).
- If this is a local instance, use
.orlocalhostor the local machine name instead of an IP if appropriate.
- Ensure TCP/IP (and protocol order) is configured correctly
- On the client machine, open SQL Server Configuration Manager.
- Under SQL Native Client <version> Configuration → Client Protocols:
- Ensure TCP/IP is Enabled.
- Ensure TCP/IP has a lower protocol order number than Named Pipes so it is tried before Named Pipes for remote connections.
- Verify SQL Server is configured for remote connections
- On the server, ensure the instance is configured to allow remote connections.
- If remote connections are disabled, enable them and restart the SQL Server service.
- Check firewalls and ports (for remote connections)
- Ensure that the SQL Server port (default TCP 1433 for a default instance, or the configured port for a named instance) is open on:
- The Windows firewall on the SQL Server machine.
- Any network firewalls between client and server.
- If the port is blocked, open it for inbound connections to allow clients to connect.
- Ensure that the SQL Server port (default TCP 1433 for a default instance, or the configured port for a named instance) is open on:
- If using Named Pipes, verify Windows logon permissions
- If connections are using Named Pipes and consistently failing, ensure the user account has permission to log in to Windows on the SQL Server machine.
- Add the user to the Users group on the SQL Server machine (and all nodes if mirrored/clustered) if necessary.
If the problem persists after these checks, collect more details as suggested (instance name, IP, TCP port, protocol configuration, firewall status) and then continue troubleshooting using the SQL connectivity guidance.
References:
- A network-related or instance-specific error occurred while establishing a connection to SQL Server
- Named Pipes connections cause failure to SQL Server
- Consistent SQL Server network connectivity issues
- Troubleshoot connectivity issues and other errors
- 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 - Microsoft Q&A
- how to fix SQL server management on my PC - Microsoft Q&A
- Unable to connect to SQL Server for Learning Labs - Microsoft Q&A
- error 26 trying to connect to my local server - Microsoft Q&A
- Source: "Microsoft SQL Native Client" Hresult: 0x80004005 Description: "Login timeout expired". can i fix ? - Microsoft Q&A
- KB3174829 - FIX: "A network-related or instance-specific error occurred" when you repair SQL Server 2016