• To Load the driver or drivers
we need to use a very simple one line of code.
• If we want to use the JDBC/ODBC Bridge driver, the following code will load it:
Class.forName(”sun.jdbc.odbc.JdbcOdbcDriver”);
• The driver documentation gives the class name to use.
• For example, if the class name is jdbc.DriverXYZ, we can load the driver using the below line of code:
Code:
Class.forName(”jdbc.DriverXYZ”);
• If we want to use the JDBC/ODBC Bridge driver, the following code will load it:
Class.forName(”sun.jdbc.odbc.JdbcOdbcDriver”);
• The driver documentation gives the class name to use.
• For example, if the class name is jdbc.DriverXYZ, we can load the driver using the below line of code:
Code:
Class.forName(”jdbc.DriverXYZ”);
No comments:
Post a Comment