Howdy, here a little trick for you, who want connect your database using access databse without setting the (F**K***) DSN!
just try this code
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection cn = DriverManager.getConnection("jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=NamaDatabaseAccess.mdb");
0 komentar:
Posting Komentar