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. General Programming
  3. Visual Basic
  4. Connect to Remote Server Database from Local Machine

Connect to Remote Server Database from Local Machine

Scheduled Pinned Locked Moved Visual Basic
databasesysadminhelptutorialquestion
8 Posts 5 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.
  • P Offline
    P Offline
    Paul McGann
    wrote on last edited by
    #1

    I am trying to create an application that can connect to a database on a remote server. If anyone knows how to achieve this or has any good reading material please could you let me know? Any help is much appreciated.

    McGann

    S 1 Reply Last reply
    0
    • P Paul McGann

      I am trying to create an application that can connect to a database on a remote server. If anyone knows how to achieve this or has any good reading material please could you let me know? Any help is much appreciated.

      McGann

      S Offline
      S Offline
      Steven J Jowett
      wrote on last edited by
      #2

      Mc--Gann wrote:

      remote server

      By this I assume you mean 'Not on the same Local Area Network' Also, what type of database are you trying to connect to?

      Steve Jowett ------------------------- Real programmers don't use PL/1. PL/1 is for insecure momma's boys who can't choose between COBOL and Fortran.

      P 1 Reply Last reply
      0
      • S Steven J Jowett

        Mc--Gann wrote:

        remote server

        By this I assume you mean 'Not on the same Local Area Network' Also, what type of database are you trying to connect to?

        Steve Jowett ------------------------- Real programmers don't use PL/1. PL/1 is for insecure momma's boys who can't choose between COBOL and Fortran.

        P Offline
        P Offline
        Paul McGann
        wrote on last edited by
        #3

        Correct its over the web. It's a MSSQL database

        ASP all the way

        D S D 3 Replies Last reply
        0
        • P Paul McGann

          Correct its over the web. It's a MSSQL database

          ASP all the way

          D Offline
          D Offline
          dan sh
          wrote on last edited by
          #4

          You can connect to SQL over internet. Check out ConnectionStrings.com for connection string.

          P 1 Reply Last reply
          0
          • P Paul McGann

            Correct its over the web. It's a MSSQL database

            ASP all the way

            S Offline
            S Offline
            Steven J Jowett
            wrote on last edited by
            #5

            You should be aware of firewall inparticular the UDP ports. MS SQL Server uses port 1440 as standard but is othen changed. Assuming the port is 1440 then in your connection string you will need to specify the port along with the server ip address, for example :

            Data Source=123.123.123.123:1440;Initial Catalog=MyDatabase;User ID=MyUserId;Password=MyPassword

            Steve Jowett ------------------------- Real programmers don't use PL/1. PL/1 is for insecure momma's boys who can't choose between COBOL and Fortran.

            1 Reply Last reply
            0
            • D dan sh

              You can connect to SQL over internet. Check out ConnectionStrings.com for connection string.

              P Offline
              P Offline
              Paul McGann
              wrote on last edited by
              #6

              thanks for the help

              ASP all the way

              1 Reply Last reply
              0
              • P Paul McGann

                Correct its over the web. It's a MSSQL database

                ASP all the way

                D Offline
                D Offline
                Dave Kreskowiak
                wrote on last edited by
                #7

                Who in their right mind exposes a SQL Server directly to the Internet?? That's insane!

                A guide to posting questions on CodeProject[^]
                Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                     2006, 2007, 2008
                But no longer in 2009...

                T 1 Reply Last reply
                0
                • D Dave Kreskowiak

                  Who in their right mind exposes a SQL Server directly to the Internet?? That's insane!

                  A guide to posting questions on CodeProject[^]
                  Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                       2006, 2007, 2008
                  But no longer in 2009...

                  T Offline
                  T Offline
                  tiggerc
                  wrote on last edited by
                  #8

                  Fasthosts do and that seems quite secure to be honest, I can access it using management studio from my PC easily which makes for simple maintenance. Phil Software Developer http://www.yorkshirehumberit.co.uk

                  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