Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to connect to MS ACCESS through our own Driver

 
Gaurav Chhabras
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have one driver named abc, this is a class file means abc.class.
Now i want to manipulate MS ACCESS through this.

How can i do that, what steps should i follow and where to put this class file, and what should i write while writting :

Connection con = DriverManager.getConnection("jdbc:apache:commons: abc SN")

what should i give at the place of DSN or what should i do.

Thanks
Regards
Gaurav
 
Aris Doxakis
Ranch Hand
Posts: 136
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,
i think this will work for you

Connection con = null;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc dbc:abc");
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic