Quick Start Connect : Connecting to a Database : 3. Passing the Connection URL

3. Passing the Connection URL
After registering the drivers, pass the connection information in the form of a connection URL. This example establishes a connection to a Microsoft SQL Server database and includes user ID and password information for the connection:
Connection conn = DriverManager.getConnection
("jdbc:datadirect:sqlserver://server1:1433;User=test;Password=secret");
The following sections provide URL formats that you can use as templates to create your own connection URLs, substituting the appropriate values for your database:
*
*

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