Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > JDBC/ODBC Connection in X

JDBC/ODBC Connection in X
Thread Tools
Fresh-Faced Recruit
Join Date: Jan 2002
Location: Cambridge, England
Status: Offline
Reply With Quote
Jan 12, 2002, 07:22 AM
 
I have been given the source code for a Java app that accesses an MS-Access database using JDBC and ODBC. At Uni (on the PCs) I set up a connection to the database file using the ODBC control planel. Can I connect to the database on my iMac running 10.1.2?
mmmm - I'm a big Cinnamon bun.
     
Grizzled Veteran
Join Date: Sep 2000
Location: Springfield, MA
Status: Offline
Reply With Quote
Jan 12, 2002, 01:21 PM
 
You should be able to. Are you having difficulty with something?
We hope your rules and wisdom choke you / Now we are one in everlasting peace
-- Radiohead, Exit Music (for a film)
     
Dedicated MacNNer
Join Date: Oct 2000
Location: Washington, DC
Status: Offline
Reply With Quote
Jan 12, 2002, 01:27 PM
 
A lot of beginner java development manuals usually use this kind of setup, because the majority of them are on windows, and windows supports ODBC connection to Access files.

Basically whats happening here is:

Java Application -> Sun's JDBC-ODBC connector -> ODBC DSN -> Access file.

You could do this kind of work on your iMac (assuming youre using OSX), if you could find a JDBC connector that can read direct to Access files. However, I don't know of such a beast.

I would check online web resources for ways of being able to read Access files with Unix/Linux using JDBC. Then you could probably do similar procedures to get your OSX machine to read the file.

-tim
     
Fresh-Faced Recruit
Join Date: Jan 2002
Location: Cambridge, England
Status: Offline
Reply With Quote
Jan 12, 2002, 03:30 PM
 
I've looked at a couple of ways, one which looked promising was called iODBC but I couldn't find any drivers. I guess I was hoping that someone would say "here is an app that does what you need".
mmmm - I'm a big Cinnamon bun.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:43 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2