
November 21st, 2012, 07:16 AM
|
|
Contributing User
|
|
Join Date: Mar 2007
Location: Portugal
Posts: 38
  
Time spent in forums: 4 Days 6 h 34 m 46 sec
Reputation Power: 8
|
|
|
Connect into Access Database
I've been reading a lot of things, and i would like your help about this.
Some say that the connection can be done without the DSN, and i would like to do that, but I'm not being able to make the connection to the database i want.
And the problems starts here:
Code:
Connection conn = DriverManager.getConnection( "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=C:\\Users\\Don Shinchan\\Documents\\Database1.mdb" );
The path is correct, and the database name is Database1 (i was testing).
And i get a null connection so something is wrong just don't know what, can someone help me out?
|