Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

URGENT !! JDBC driver help. Reply asap

 
Raukutam Sandeep
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

can JDBC be used to connect from JAVA to a database through ODBC drivers.
Or do we need any special set of driver files for JAVA to interact with a database?
If so, where can I find JDBC drivers.
I have Oracle, MSAccess databases.
Pls reply me asap.
 
Pranav Jaidka
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sandeep
you may use the JDBC ODBC bridge to overcome the problem.Just use the sun.jdbc.odbc.JdbcOdbcDriver line in your class.forName method to register the driver and start using the database after getting a connection from the DriverManager.getConnection method .
Also try searching on the sun site .they gove a a list of all drivers that you may find helpful
regards
pranav
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic