Connecting using the JDBC Driver Manager
- Last Updated: June 24, 2024
- 1 minute read
- DataDirect Connectors
- JDBC
- Microsoft SQL Server 6.0
- Documentation
One way to connect to a service is through the JDBC DriverManager using the DriverManager.getConnection() method. As the following examples
show, this method specifies a string containing a connection URL.
UserID/Password authentication
Connection conn = DriverManager.getConnection
("jdbc:datadirect:sqlserver://server1:1433;User=test;Password=secret;DatabaseName=MyDB");
Note: See User ID/password authentication for details.