Connecting to a Database
- Last Updated: May 15, 2020
- 1 minute read
- DataDirect Connectors
- JDBC
- IBM Db2 5.1
- MySQL 5.1
- Progress OpenEdge 5.1
- SAP Sybase 5.1
- Documentation
Once the product is installed and the drivers are configured the way you want them, you can connect from your application to your database in either of the following ways:
- Using a connection URL through the JDBC Driver Manager, specifying the connection URL using the DriverManager.getConnection() method
- Using a Java Naming Directory Interface (JNDI) data source
This quick start explains how to create your database connection using a connection URL. See Using the Drivers for information about using data sources.
Use the following steps to load the drivers from your JDBC application.