Connecting programmatically with JDBC
Define a connection between a Java™ application and the Db2 database, BLUDB.
Before you begin
Before you can connect to your database, you must carry out the following steps:
In each Java application, specify the user ID and password by including the DriverManager.getConnection method, and then include one of the following JDBC URL strings:
- For a connection without
- For a connection with