• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Peter Rooke
  • Himai Minh
Bartenders:
  • Piet Souris
  • Mikalai Zaikin

How to Connect to a Remote Database

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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:



Do I need to use a different driver? Is the connection string incorrect? Any ideas?

Thanks in advance for your help.
 
author and iconoclast
Posts: 24204
44
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to JDBC
 
Sheriff
Posts: 67706
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

"jdbc:odbc://<ip_address>;dsn=<dsn_name>;uid=<user_id>;pwd=<password>;"



Is this the actual string that you used? You did substitute real values, didn't you?
 
Marshal
Posts: 27674
89
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

"jdbc:odbc://<ip_address>;dsn=<dsn_name>;uid=<user_id>;pwd=<password>"


Nope. Your "ip_address" part is meaningless. If your database is "remote" then you'll need to configure the DSN appropriately. Whether this is possible or not depends on the ODBC driver; some can be configured for databases on other machines and others cannot. If your next question was going to be about MS Access, its driver is in the latter category. Unless you map a drive to its "remote" location, which makes it basically local.
[ October 23, 2005: Message edited by: Paul Clapham ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic