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
2009-10-18 09:48:33
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
2009-10-18 14:20:05
what does DBQ=C:/data/data.MDB","",""); mean
jyotika
2009-10-18 14:44:13
This is not a separate Java statement. This goes as part of the connection string. The first argument to the getConnection method.
TheCoolestSid
2009-10-18 15:45:53