Quick Start: Progress DataDirect for JDBC for SQL Server Driver
:
Connecting to a DataSource
:
Connecting using the DriverManager
Try DataDirect Drivers Now
Connecting using the DriverManager
One way to connect to a SQL Server database is through the JDBC DriverManager using the
DriverManager.getConnection()
method. As the following example shows, this method specifies a string containing a connection URL.
Connection conn = DriverManager.getConnection
("jdbc:datadirect:sqlserver://MyServer:1433;User=test;Password=secret");
In this section:
Passing the connection URL
Testing a DriverManager Connection