FileDocCategorySizeDatePackage
JDBCVersionApp.javaAPI DocExample516Thu Jun 14 17:58:44 BST 2001None

JDBCVersionApp

public class JDBCVersionApp extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)


    Class.forName("oracle.jdbc.driver.OracleDriver");
    Connection conn = DriverManager.getConnection(
     "jdbc:oracle:thin:@dssnt01:1521:dssora01","scott","tiger");
    DatabaseMetaData meta = conn.getMetaData();
    System.out.println("You're using version: " + 
     meta.getDriverVersion() + 
     " of the Oracle JDBC driver.");
    conn.close();