How to fix error: 26 - Error Locating Server/Instance Specified

Kai Lin 0 Reputation points
2025-01-04T09:47:17.1633333+00:00

User's image

How to fix it, this is my own computer. When I first open it, it works. But when I re-open it, it didn't with the same setting!

SQL Server | Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Erland Sommarskog 129.4K Reputation points MVP Volunteer Moderator
    2025-01-04T10:20:05.68+00:00

    The error message means that SSMS was not able to find the SQL Server instance you were trying to connect to. There are many possible reasons. Here is a sample:

    • Fat-fingering the server and / or the instance name.
    • SQL Server is not running.
    • There is not SQL Server at all installed on the machine.
    • Firewall blocking the way.

    Since we don't know your environment, we cannot easily point to the exact cause in your case. But use this troubleshooter to investigate.

    0 comments No comments

  2. LiHongMSFT-4306 31,616 Reputation points
    2025-01-06T01:21:21.9366667+00:00

    Hi @Kai Lin

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

    Regarding this issue, this doc provides some steps to help you troubleshoot this issue.

    Best regards,

    Cosmog


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    0 comments No comments

Your answer

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