Click here to Skip to main content
15,885,045 members
Articles / Desktop Programming / ATL
Technical Blog

Solution: Error: 26 – Error Locating Server/Instance Specified

Rate me:
Please Sign up or sign in to vote.
4.88/5 (5 votes)
10 Jan 2014CPOL1 min read 62.6K   6
Solution to a very common problem that we face while working with SQL

Introduction

This is a very common problem that we face while working with SQL (be it any version of SQL) and we always spend some time to figure out the exact issue. Every time, we need to look into where we should start looking for the problem. This post lists the basic issues that can cause this error and I will keep this post updated in case any more reasons are found.

Below are the most common issues due to which we get this error:

  • Check the Server name – First and the most common thing to check is to ensure there are no typo errors for the server name.
  • Accessibility to Server – The server should also be accessible from the network computer, we are trying to access SQL Server.
  • Check the Instance name – Once the server is checked for correctness, the next thing to check is the SQL Server instance name. Check for typo errors in the Instance name and also ensure that the Instance exists on the server
  • Remote Connections enabled on SQL Server – Ensure SQL Server is allowed for remote connections
  • Mixed Mode Authentication Enabled – Ensure Mixed-mode authentication is enabled on SQL Server you are trying to connect to
  • SQL Browser Service should be running – On the server, SQL browser service should be running. You can check this from Services window on the server.
  • Firewall is configured on server to allow sqlbrowser.exe and port 1434 under exception.

After following all the above steps, the error should be resolved.

[Original Source]

Hope you like this post. You can get connected with me on Facebook, Twitter or LinkedIn also. In case you know any other way of resolving the feature, let me know via comments.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Founder Rebin Infotech
India India
A passionate developer with over 10 years of experience and building my software company code by code. Experience withMS Technologies like .Net | MVC | Xamarin | Sharepoint | MS Project Server and PhP along with open source CMS Systems like Wordpress/DotNetNuke etc.

Love to debug problems and solve them. I love writing articles on my website in my spare time. Please visit my Website for more details and subscribe to get technology related tips/tricks. #SOreadytohelp

Comments and Discussions

 
QuestionDisabled SQL Server Browser Service after install Pin
Member 1207743521-Oct-15 14:24
Member 1207743521-Oct-15 14:24 
AnswerRe: Disabled SQL Server Browser Service after install Pin
Nitesh Kejriwal29-Oct-15 0:47
professionalNitesh Kejriwal29-Oct-15 0:47 
GeneralMy vote of 3 Pin
Mxolisi Zondi21-Jul-15 19:40
Mxolisi Zondi21-Jul-15 19:40 
Simply awesome
GeneralRe: My vote of 3 Pin
Nitesh Kejriwal21-Jul-15 21:37
professionalNitesh Kejriwal21-Jul-15 21:37 
GeneralRe: My vote of 3 Pin
Mxolisi Zondi21-Jul-15 22:34
Mxolisi Zondi21-Jul-15 22:34 
GeneralRe: My vote of 3 Pin
Nitesh Kejriwal21-Jul-15 22:55
professionalNitesh Kejriwal21-Jul-15 22:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.