JDBC Version InformationVersion information is available from the c-treeACE SQL JDBC driver. The Java JDBC getDriverMajorVersion() and getDriverMinorVersio() methods can be used to retrieve these values. JDBC Version Example Connection con = DriverManager.getConnection ( url, prop); // Get the DatabaseMetaData object and display // some information about the connection DatabaseMetaData dma = con.getMetaData (); o.println("\nConnected to " + dma.getURL());
o.println("Driver " +
dma.getDriverName()); o.println("Version " +
dma.getDriverVersion()); |
|||