Hooking up jdbc to a local access database

K

KNelson

The driver I am using, the default jdbc/odbc driver, in netbeans is
not working for connecting to an access db on my hard drive. The
driver does find the database, and connects to it, but when I set it
up I get a "unable to obtain schema" warning. then on the icon for
the database after im connected in netbeans, the link to the tables is
broken. Thanks

Karl Nelson
 
C

CodeForTea

The driver I am using, the default jdbc/odbc driver, in netbeans is
not working for connecting to an access db on my hard drive. The
driver does find the database, and connects to it, but when I set it
up I get a "unable to obtain schema" warning. then on the icon for
the database after im connected in netbeans, the link to the tables is
broken. Thanks

Karl Nelson

1. Control Panel
2. Administrative Tools
3. Data Sources (ODBC)
4. System DSN Tab
5. Add
6. Microsoft Access Drive (*.mdb)
7. Data Source Name ( add Data source name dont put any spaces.)
8. Click on select button Browse and find your database files.
9. Ok
10. ok

String url = "jdbc:eek:dbc:xxxxx" database name from step 7.
Connection con = DriverManager.getConnection(url, "myLogin",
"myPassword");
 
K

KNelson

1. Control Panel
2. Administrative Tools
3. Data Sources (ODBC)
4. System DSN Tab
5. Add
6. Microsoft Access Drive (*.mdb)
7. Data Source Name ( add Data source name dont put any spaces.)
8. Click on select button Browse and find your database files.
9. Ok
10. ok

String url = "jdbc:eek:dbc:xxxxx" database name from step 7.
Connection con = DriverManager.getConnection(url, "myLogin",
"myPassword");

Thanks bud but I actually do have a correct odbc connection set up
already. If you know what it may be besides that im all ears
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,821
Latest member
AleidaSchi

Latest Threads

Top