Bonjour ..
Not possible, because Driver JDBC is specific for the DBR of one editor ..
But you can instanciate the drivers of Oracle, Mysql etc .. in the same
program, and create connections attached to each driver ..
It works well
try  {
          // Load de 4 drivers JDBC
    Class.forName("com.lutris.instantdb.jdbc.idbDriver").newInstance();  //
Instant db
    Class.forName("COM.cloudscape.core.JDBCDriver").newInstance();  //
cloudscape
    Class.forName("org.gjt.mm.mysql.Driver").newInstance();  // Mysql
    Class.forName("COM.ibm.db2.jdbc.app.DB2Driver").newInstance();  // IBM
Db2
         // liste des drivers chargés
          for (java.util.Enumeration enum = DriverManager.getDrivers();
enum.hasMoreElements() ;) {
          Driver drv = (Driver)enum.nextElement();
    log("Version du Driver :" + drv.getMajorVersion() + "." +
drv.getMinorVersion());
          }
          }
          catch (Exception e)  {
          log("Impossible de charger le driver, code erreur: " +
e.getMessage());
          return;
          }

----- Original Message -----
From: "Kader Ben" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 18, 2001 10:22 PM
Subject: JDBC


> Hi Listers,
>
>     I'm writing an application that can be connected
> to a 3 databases (Oracle, Sybase, Mysql). I'm
> wondering if there is a generic JDBC that can be used
> to connect into both these DB's.
> Any input from you well be very appreciated.
>
> Regards,
>
>
> Ben
>
> __________________________________________________
> Do You Yahoo!?
> Make a great connection at Yahoo! Personals.
> http://personals.yahoo.com
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to