skip to main content
Getting Started : Using the Drivers : Connecting Using the JDBC Driver Manager
  
Connecting Using the JDBC Driver Manager
One way to connect to a database is through the JDBC Driver Manager using the DriverManager.getConnection() method. This method specifies a string containing a connection URL. The following example shows using the JDBC Driver Manager to connect to Microsoft SQL Server.
Connection conn = DriverManager.getConnection
   ("jdbc:datadirect:sqlserver://server1:1433;User=test;Password=secret");
For details, see the following topics:
* Registering the Drivers
* Specifying Connection URLs