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. Connecting to the remote Sqlserver instance.

Connecting to the remote Sqlserver instance.

Scheduled Pinned Locked Moved Database
tutorial
5 Posts 2 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.
  • R Offline
    R Offline
    RuchirD
    wrote on last edited by
    #1

    Hi Firends, I am trying to access remote Sqlserver instance using program, Can anyone tell me how to achieve this. I am having difficulty because My machine is having more that one instance of MSDE/Sqlserver instance how to provide exact information of the Sqlserver instance to which to connect. Please anyone tell me. Thanks n Regards, RuchirDhar Dwivedi Software Engineer Windowmaker Software Pvt.Ltd. Baroda, India.

    D 1 Reply Last reply
    0
    • R RuchirD

      Hi Firends, I am trying to access remote Sqlserver instance using program, Can anyone tell me how to achieve this. I am having difficulty because My machine is having more that one instance of MSDE/Sqlserver instance how to provide exact information of the Sqlserver instance to which to connect. Please anyone tell me. Thanks n Regards, RuchirDhar Dwivedi Software Engineer Windowmaker Software Pvt.Ltd. Baroda, India.

      D Offline
      D Offline
      David Salter
      wrote on last edited by
      #2

      If you have more than one instance, you need to specify the machine and instance name to connect. i.e. instead of connecting to "server_name", you would connect to "server_name\instance_name".


      Database FAQ

      R 1 Reply Last reply
      0
      • D David Salter

        If you have more than one instance, you need to specify the machine and instance name to connect. i.e. instead of connecting to "server_name", you would connect to "server_name\instance_name".


        Database FAQ

        R Offline
        R Offline
        RuchirD
        wrote on last edited by
        #3

        Hi, Since the server is on the remote machine in that case How to do this, Let me give an example suppose my server name is Foo and the instance name is Bar, IP address of the remote sever is ppp.qqq.rrr.sss Can anyone tell me what would be the connection string. RuchirDhar Dwivedi Software Engineer Windowmaker Software Pvt.Ltd. Baroda, India.

        D 1 Reply Last reply
        0
        • R RuchirD

          Hi, Since the server is on the remote machine in that case How to do this, Let me give an example suppose my server name is Foo and the instance name is Bar, IP address of the remote sever is ppp.qqq.rrr.sss Can anyone tell me what would be the connection string. RuchirDhar Dwivedi Software Engineer Windowmaker Software Pvt.Ltd. Baroda, India.

          D Offline
          D Offline
          David Salter
          wrote on last edited by
          #4

          Does this link help? http://www.able-consulting.com/MDAC/ADO/Connection/OLEDB_Providers.htm#OLEDBProviderForSQLServer[^]


          Database FAQ

          R 1 Reply Last reply
          0
          • D David Salter

            Does this link help? http://www.able-consulting.com/MDAC/ADO/Connection/OLEDB_Providers.htm#OLEDBProviderForSQLServer[^]


            Database FAQ

            R Offline
            R Offline
            RuchirD
            wrote on last edited by
            #5

            Hi, I have gone through that site but To connect to SQL Server running on a remote computer (via an IP address) oConn.Open "Provider=sqloledb;" & _ "Network Library=DBMSSOCN;" & _ "Data Source=xxx.xxx.xxx.xxx,1433;" & _ "Initial Catalog=myDatabaseName;" & _ "User ID=myUsername;" & _ "Password=myPassword" in this example it doesn't provide any information about what to do in the case where I have a named instance. Plz help?? RuchirDhar Dwivedi Software Engineer Windowmaker Software Pvt.Ltd. Baroda, India.

            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