Quick Start Connect : Connecting to a Database : 2. Registering the Drivers

2. Registering the Drivers
Important:
If using Java SE 6 or higher, you do not need to register the drivers and can skip this step. Java SE 6 and higher automatically registers the drivers with the JDBC Driver Manager.
Registering the drivers tells the JDBC Driver Manager which driver to load. The drivers are registered by using the Class.forName() method and specifying the driver class name as the argument. This example registers the Microsoft SQL Server driver:
Class.forName("com.ddtek.jdbc.sqlserver.SQLServerDriver");
The following tables list the class names for each driver.
 
 

© 2012 Progress Software Corporation and/or its subsidiaries or affiliates.