On 11/17/2012 6:02 PM, Oussama Romdhane wrote:
> hi everyone, I'm new here so hey there all ! I just want you guys to
> give me the necessary line codes to connect an access data base
> (.mdb) to a java program (I'm working on web services using the soap
> exchange method)
With DSN:
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con = DriverManager.getConnection("jdbc:odbc:Test");
DSN less:
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con =
DriverManager.getConnection("jdbc:odbc:;Driver={Microsoft Access Driver
(*.mdb)};Dbq=C:\\Databases\\Test.mdb;");
But now the important part: The JDBC ODBC bridge is known to
have problems - especially with concurrent usage. Web services
will typical be concurrent usage. I will strongly recommend
a different solution - maybe a different database.
Arne