How to Connect to Remote Database


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: How to Connect to Remote Database

  1. #1
    Join Date
    Aug 2005
    Posts
    6

    How to Connect to Remote Database

    Hello. I am trying to connect to an access database on my company's web host. I have tried a number of possibilities without success. Here is what I'm trying right now:

    Code:
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); 
    Connection serverConnect = DriverManager.getConnection
    ("jdbc:odbc://<ip_address>;dsn=<dsn_name>;uid=<user_id>;pwd=<password>");
    Do I need to use a different driver? Is the connection string incorrect? Any ideas?

    Thanks in advance for your help.

  2. #2
    Join Date
    Jul 2005
    Location
    Antwerp - Belgium
    Posts
    29

    what errors ?

    If you're adding a try catch arond these lines, you could take a look at the errors you're getting. It might help us to know what kind of errors you're getting.

Similar Threads

  1. Database not properly created
    By Arjuna in forum Database
    Replies: 2
    Last Post: 07-25-2007, 03:22 AM
  2. Replies: 1
    Last Post: 01-07-2002, 12:41 PM
  3. Replies: 0
    Last Post: 01-06-2002, 09:24 AM
  4. How to connect to remote database?
    By Dan Hinrichs in forum VB Classic
    Replies: 0
    Last Post: 12-08-2001, 05:13 AM
  5. Accessing database on remote server
    By Vince Weeks in forum Database
    Replies: 2
    Last Post: 11-29-2000, 03:55 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center