tags:

views:

71

answers:

2

i want what should be given in DriverManager.getConnection() when i want to access all tables from ms-access

A: 

Have a look at DriverManager.getConnection(String url, Properties info). What problem doesn't this solve?

Pascal Thivent
A: 

I think you want to connect to an MS Access DB without creating a DSN.

In any case this works fine with acess everytime.

DriverManager.getConnection("jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=C:/data/data.MDB","","");

Change the DBQ argument to your MDB file.

TheCoolestSid
what does DBQ=C:/data/data.MDB","",""); mean
jyotika
This is not a separate Java statement. This goes as part of the connection string. The first argument to the getConnection method.
TheCoolestSid