Results 1 to 7 of 7

Thread: distant database woes

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2003
    Location
    Australia
    Posts
    6

    Question distant database woes

    I have a database located on a web server and I need to be able to edit it using a vb.net desktop application. As far as I can see there are two ways to do this:

    1) connect directly to the database somehow and reference it as if it were local or
    2) using ftp, download the database, edit it offline and then upload the database again.

    Unfortunately, I know how to achieve neither of these. I can achieve option 2 using vb6 and winsock but i am lost and confused with vb.net and the system.net.sockets namespace. Any assistance would be greatly appreciated.

  2. #2
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496
    If you can grab a hold of the ip address of the server and you know the rest of the connection/server information, you can connect to it via remotely.

  3. #3
    Registered User
    Join Date
    Nov 2002
    Location
    Växjö, Sweden
    Posts
    314
    I agree with Lethal but it might not be entirely true depending on security settings of the webserver, but if you're in control of that it should be possible.

  4. #4

    Thread Starter
    New Member
    Join Date
    Jan 2003
    Location
    Australia
    Posts
    6
    Thank you for your replies, although my problem is still unresolved.

    When a tcp ip address or url is incorperated into a connection string i am confronted with the exception messsage "URI format not supported".

    How can I connect to a remote database?
    Last edited by capable_coder; Jan 3rd, 2003 at 05:59 AM.

  5. #5
    Registered User
    Join Date
    Nov 2002
    Location
    Växjö, Sweden
    Posts
    314
    Depends on what kind of database it is? Is it a SQL?

  6. #6

    Thread Starter
    New Member
    Join Date
    Jan 2003
    Location
    Australia
    Posts
    6
    Currently using Access2000 but can switch to SQL if it better facilitates this purpose.

  7. #7
    Registered User
    Join Date
    Nov 2002
    Location
    Växjö, Sweden
    Posts
    314
    Well SQL has the possobility to use IP as URI I guess, but if that is not the case I'm quite sure it supports connection via http, there are a couple of example of this in the "Books Online" for SQL.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width