Benjamin Aladenise wrote:
Hi ,My name 's Ben ,I'm a French student and I've got a real problem with a servlet and JDBC.This is a part of my source that seems to be good but occurs ERRORS !!! : public boolean dbconnect(){try{   Connection Connect;   String url="jdbc:odbc:pwd";
   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");   Connect=DriverManager.getConnection(url);   return true;}catch(ClassNotFoundException e){
   System.out.println("CNFE");
   return false;}
catch(SQLException e){
   System.out.println("sqlExcept....."+e.toString());
   return false;}} The error message is : java.sql.SQLException: [Microsoft][Pilote ODBC Access 97 ODBC driver]Erreur générale Impossible d'ouvrir la clé de registre 'DriverId'. (means)->General Error can't open 'DriverId' register key. Sending me a short mail about this message would be really helpfull for me.Thank you for all. Ben.
I Ben,
maybe you have to register your db like system db.
From "Start" to "Control Panel" to ODBC 32 ... and register your db!
I hope that's useful for you.
By Antonio
 

Reply via email to