

The Type-1 driver is very slow, because of JDBC-ODBC transactions.Type-1 driver is a database independent driver.No need to install Type-1 driver separately, since it comes as part of the JDK.

1.5 Example to get the Connection : Connection con1=DriverManager.getConnection (“jdbc : odbc : Access”) Ĭonnection con2=DriverManager.getConnection (“jdbc : odbc : oracle”,”scott”,”tiger”) 1.6 Advantages of Type -1 Driver : Method-2 is used for those databases where there are username and password. Method-1, we use to obtain the connection from those databases where there is no username and password databases. public static Connection getConnection (String URL, String username, String password).public static Connection getConnection (String URL).
