Friday , April 26 2024

An error has occurred while establishing a connection to the server. When connecting to SQL Server, this failure may be caused by the fact that

 

ERROR MESAGGE:

“An error has occurred while establishing a connection to the server. When connecting to SQL Server, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 – Error Locating Server/Instance Specified) (.Net SqlClient Data Provider)”

EXPLANATION:

When connecting to a SQL Server Instance, you will see this error if you have used an incorrect Instance name.

SOLUTION:

If SQL Server Instance is a Named Instance, then you should use the following format as the Instance name:

Example:

EKREM-PC\DeveloperEdition

According to the example above, “EKREM-PC” is the name of my computer. “DeveloperEdition” is the name of my instance that I gave it when setting up SQL Server Instance.

If SQL Server Instance is a Default Instance, then you should use the following format as your Instance name:

Example:

EKREM-PC

According to the example above, “EKREM-PC” is the name of my computer.

If you select “Default Instance” in the window of the Instance name in the SQL Server installation, the name of your SQL Server Instance only consists of the computer name.

Loading

About Ekrem Önsoy

The original article was written in Turkish by Ekrem Önsoy and translated to English by dbtut with the consent of the author. The copyright of the article belongs to the author. The author shall not be liable in any way for any defect caused by translation.

Leave a Reply

Your email address will not be published. Required fields are marked *

Categories