Product Documentation

FairCom JDBC Developer's Guide

Previous Topic

Next Topic

JDBC Version Information

Version information is available from the FairCom DB 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());

TOCIndex