Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified

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

Scheduled Pinned Locked Moved Database
helpdatabasesysadminsql-serversecurity
9 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    steve_rm
    wrote on last edited by
    #1

    Hello, I have a problem trying to connect a remote sql server. The error: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, 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) DEVSQL computer name RealitySolutions instance name Using a windows application on a LAN. my connection string is: connectionString="server=DEVSQL\REALITYSOLUTIONS; database=ServiceMaster; Integrated Security=True This is what I have done: Enabled TCP/IP and named pipes and share memory protocals on my instance in configuratoin management. surface area configuration I have enabled enabled remote connection using TCP and Named pipes. I still get the above error message. Any help will be most grateful, and I think i have tried everything. Thanks Steve

    Y 1 Reply Last reply
    0
    • S steve_rm

      Hello, I have a problem trying to connect a remote sql server. The error: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, 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) DEVSQL computer name RealitySolutions instance name Using a windows application on a LAN. my connection string is: connectionString="server=DEVSQL\REALITYSOLUTIONS; database=ServiceMaster; Integrated Security=True This is what I have done: Enabled TCP/IP and named pipes and share memory protocals on my instance in configuratoin management. surface area configuration I have enabled enabled remote connection using TCP and Named pipes. I still get the above error message. Any help will be most grateful, and I think i have tried everything. Thanks Steve

      Y Offline
      Y Offline
      yahao
      wrote on last edited by
      #2

      if connect to server on otder machine,use machine-IP\instance-id,otherwise use "(local)". btw,maybe need config the client-network information with SQL Server Client Network Utility,the server-ip and port,etc.

      S 1 Reply Last reply
      0
      • Y yahao

        if connect to server on otder machine,use machine-IP\instance-id,otherwise use "(local)". btw,maybe need config the client-network information with SQL Server Client Network Utility,the server-ip and port,etc.

        S Offline
        S Offline
        steve_rm
        wrote on last edited by
        #3

        Hello, thanks for your reply. But i think the ip address would be used for connecting to a remote server on the internet. Local would be the local server on my machine not a remote one. How do i config client-network information with sql server? Not sure about this. Thanks in advance, Steve

        P 1 Reply Last reply
        0
        • S steve_rm

          Hello, thanks for your reply. But i think the ip address would be used for connecting to a remote server on the internet. Local would be the local server on my machine not a remote one. How do i config client-network information with sql server? Not sure about this. Thanks in advance, Steve

          P Offline
          P Offline
          Private_Void
          wrote on last edited by
          #4

          Data Source="SQLServerIP\InstanceName";Initial Catalog="DataBase";Persist Security Info=True;User ID="UserID";Password="Password" Obviously the " are just to separate the required values and what you will modifiy.

          S 1 Reply Last reply
          0
          • P Private_Void

            Data Source="SQLServerIP\InstanceName";Initial Catalog="DataBase";Persist Security Info=True;User ID="UserID";Password="Password" Obviously the " are just to separate the required values and what you will modifiy.

            S Offline
            S Offline
            steve_rm
            wrote on last edited by
            #5

            Hello private_void, Thanks for your reply. I have noticed you are using that connection string with a sql security. Currently I have my sql server setup for Windows authenication. That is why I never had the pwd or username. Just wondering, can you connect remotely with windows authentication? If so, have I missed something about windows user account? security login? Please if you have any idea about windows authentication. thanks very much, Steve

            Y P 2 Replies Last reply
            0
            • S steve_rm

              Hello private_void, Thanks for your reply. I have noticed you are using that connection string with a sql security. Currently I have my sql server setup for Windows authenication. That is why I never had the pwd or username. Just wondering, can you connect remotely with windows authentication? If so, have I missed something about windows user account? security login? Please if you have any idea about windows authentication. thanks very much, Steve

              Y Offline
              Y Offline
              yahao
              wrote on last edited by
              #6

              try to config an alias for "DEVSQL" with sql server client network utility. ps: DEVSQL <=> IP on Lan i have only use SSPI in same machine,not lan or internet yet.:p

              S 1 Reply Last reply
              0
              • Y yahao

                try to config an alias for "DEVSQL" with sql server client network utility. ps: DEVSQL <=> IP on Lan i have only use SSPI in same machine,not lan or internet yet.:p

                S Offline
                S Offline
                steve_rm
                wrote on last edited by
                #7

                Thanks for your reply yahao, But I am sure what you mean by:

                yahao wrote:

                config an alias for "DEVSQL" with sql server client network utility

                How will this help solve the current problem? I have connected to sql server many times. This the first time remotely. The server I am using is 2005 developer edition. Many thanks again, Steve

                Y 1 Reply Last reply
                0
                • S steve_rm

                  Thanks for your reply yahao, But I am sure what you mean by:

                  yahao wrote:

                  config an alias for "DEVSQL" with sql server client network utility

                  How will this help solve the current problem? I have connected to sql server many times. This the first time remotely. The server I am using is 2005 developer edition. Many thanks again, Steve

                  Y Offline
                  Y Offline
                  yahao
                  wrote on last edited by
                  #8

                  or try to directly connect remote server use IP rather than use machine name. this is the fun of resolve problem.:)

                  1 Reply Last reply
                  0
                  • S steve_rm

                    Hello private_void, Thanks for your reply. I have noticed you are using that connection string with a sql security. Currently I have my sql server setup for Windows authenication. That is why I never had the pwd or username. Just wondering, can you connect remotely with windows authentication? If so, have I missed something about windows user account? security login? Please if you have any idea about windows authentication. thanks very much, Steve

                    P Offline
                    P Offline
                    Private_Void
                    wrote on last edited by
                    #9

                    Well I think you should use the IP address. This should be a static IP. If it is not that could be why you are having problems. When you enable the connections via Pipes you should reboot the Server. I don't see anything wrong with your connection string and yes SQL 2005 does allow Windows Authentication, but you still have to set up a Login under Security\Logins. The user name should be Domain\WindowsUserAccount. If you have any questions regarding connections strings there is a great website; http://www.connectionstrings.com. Hope this helps.

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups