Microsoft SQL Server Error:26

Ahsen Tosun 0 Reputation points
2023-09-04T11:25:24.2833333+00:00

what's the problem?

Cannot connect to ------------------------------

ADDITIONAL INFORMATION:

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)

For help, click: https://docs.microsoft.com/sql/relational-databases/errors-events/mssqlserver--1-database-engine-error

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,826 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Olaf Helper 44,736 Reputation points
    2023-09-04T14:12:26.0166667+00:00

    Verify that the instance name is correct

    First step is to do what the error message says.

    0 comments No comments

  2. Erland Sommarskog 111.5K Reputation points MVP
    2023-09-04T20:33:57.4933333+00:00

    This is general error which says that you were not able to connect to the SQL Server instance you tried to connect to. Since we don't know you environment or why you think conncetion should succeed, we can't what is wrong.

    Common reasons include:

    • Fat-fingering server and/or instance name.
    • SQL Server is not running.
    • Firewalls blocking the way,
    • It's a named instance and the Browser is not running or blocked by firewall.

    See furhter this troubleshooter.

    0 comments No comments

  3. RahulRandive 9,666 Reputation points
    2023-09-04T21:17:40.7766667+00:00

    Hi @Ahsen Tosun

    Please provide details about your environment, whether it's SQL on-premise, Azure SQL VM, or Azure SQL Database.

    Are you connecting from your local machine and experiencing issues? Have you checked your network configuration.

    Was it working before and failing now, or is it a new setup. Is anyone else able to connect?

    Here is Microsoft document for reference for such error-  

    https://learn.microsoft.com/en-us/troubleshoot/sql/database-engine/connect/network-related-or-instance-specific-error-occurred-while-establishing-connection

    And the blog (if its SQL on-premise or Azure SQL VM)

    https://www.mssqltips.com/sqlservertip/2340/resolving-could-not-open-a-connection-to-sql-server-errors/

    Thank you.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.