开发者

jdbc to access complete database

开发者 https://www.devze.com 2022-12-08 23:59 出处:网络
i want what should be given in DriverManager.getConnection() when i want to access all table开发者_JS百科s from ms-accessHave a look at DriverManager.getConnection(String url, Properties info). What p

i want what should be given in DriverManager.getConnection() when i want to access all table开发者_JS百科s from ms-access


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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消