##### Creating a connection

The following methods are used to insert a database connection and return the handle of the newly inserted connection. If not successful, a null value is returned:

- insert(boolean bUseJDBCODBCBridge, String name, String desc, String url, String driver)
- insert(boolean bUseJDBCODBCBridge, String name, String desc, String url, String driver, ConnectionInfo info)
- insert(String dataSourceName, boolean bUseJDBCODBCBridge, String name, String desc, String url, String driver)
- insert(String dataSourceName, boolean bUseJDBCODBCBridge, String name, String desc, String url, String driver, ConnectionInfo info)

Parameters

- UseJDBCODBCBridge - Indicates to connect to the database with a JDBC-ODBC Bridge.
- name - The name of the connection.
- desc - The description for the connection.
- url - The URL used to connect to the database.
- driver - The database driver.
- info - The connection information.

Note: The class ConnectionInfo is used to create the connection information. For details, refer to the JReport Designer Javadoc jet.api package in `<install_root>\help\designer\api`, which includes all documents generated by Javadoc.