Tuesday, March 10, 2009

SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified

Error when connecting to SQL server:

Below are steps may try to help:
1) Make sure your server name is correct, e.g., no typo on the name.
2) Make sure your instance name is correct and there is actually such an instance on your target machine. [Update: Some application converts \\ to \. If you are not sure about your application, please try both Server\Instance and Server\\Instance in your connection string]
3) Make sure the server machine is reachable, e.g, DNS can be resolve correctly, you are able to ping the server (not always true).
4) Make sure SQL Browser service is running on the server.
5) If firewall is enabled on the server, you need to put sqlbrowser.exe and/or UDP port 1434 into exception.

Thank You,
Happy Coding

4 comments:

  1. If you have multiple instances.... make sure you run the SQL Browser service.

    ReplyDelete
  2. Hi,
    SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified

    I resolved the above issue.
    Start ->run->services.msc->SQL server Browser [Right click]
    1)Make it AUTOMATIC
    2)Start it

    Your issue is resolved

    Resons:Why need to do the above steps ?
    The above steps will help to open the browser.
    Hence we are performing the above steps.

    Hope this work for every ones.All the best...

    ReplyDelete
  3. --> sanjay son situaciones diferentes, tu tuviste suerte de resolverlo con una modificacion simple de habilitar un servicio.

    ReplyDelete

-->Please Share your experience with me<--