Connect to Server ------------------------------ Cannot connect to Desktop ------------------------------ ADDITIONAL INFORMATION: A network-related or instance-specific error occurred while establishing a connection to SQL Server.

Ankita thakur 30 Reputation points
2023-01-18T15:55:26.4+00:00

I am not able to connect to database engine

How can i solve this error?

TITLE: Connect to Server


Cannot connect to DESKTOP-PE7MEJS\SSMS.


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 Other
{count} votes

Accepted answer
  1. Michael Taylor 60,161 Reputation points
    2023-01-18T16:20:20.8966667+00:00

    Unfortunately you didn't provide us enough information. How are you trying to connect to the DB? Are you using SSMS, Data Sources, etc? Screenshots and more information would be greatly helpful in speeding up getting answers.

    The error itself indicates there is no SQL instance listening. This could be for a variety of reasons:

    • There is no SQL instance on that machine.
    • The SQL instance is using a non-default SQL instance name. You have to specify the instance name if it is not the default.
    • You are attempting to connect over the network and the remote SQL instance does not have network listening enabled.
    • On the local machine you can use (localhost) or . instead.
    1 person found this answer helpful.

3 additional answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. Seeya Xi-MSFT 16,586 Reputation points
    2023-01-19T03:01:37.0166667+00:00

    Hi Ankita thakur,

    As Erland said, SSMS is just a visual tool to help you use SQL Server better, but it is not SQL Server itself. If you don't have it installed, you need to install a SQL Server instance. You can see the name of your instance in SQL Server Configuration Manager.

    You can download from here: https://www.microsoft.com/en-sg/sql-server/sql-server-downloads

    Please refer to this article about how to install SQL Server: https://www.c-sharpcorner.com/article/step-by-step-installation-of-microsoft-sql-server-on-windows-system/

    This article has some options of features that you can install according to your needs.

    If we misunderstood you, please feel free to let us know.

    Best regards,

    Seeya


    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

  3. Erland Sommarskog 121.4K Reputation points MVP Volunteer Moderator
    2023-01-30T22:11:42.0633333+00:00

    You said tihs started to appear after you had upgraded to Windows 11. There is a known issue that may affect you.. To see if you are affected by this issue, check the SQL Server errorlog, which you find in C:\Program Files\Microsoft SQL Server\MSSQL15.SSMS\MSSQL\LOG\ERRORLOG. (The exact path may be different; I have to guess a little about your installation.)

    If you see a message about 256 misaligned reads, you are facing the known issue. See https://learn.microsoft.com/en-us/troubleshoot/sql/database-engine/database-file-operations/troubleshoot-os-4kb-disk-sector-size for workarounds.

    If you don't see this error, feel free to upload your errorlog here. (You need to rename it to ERRORLOG.txt to be able to.

    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.