Connecting or Disconnecting from a Database

You can use the Database Explorer to:

To open a new connection:

  1. In the contextual menu for a driver, choose Connect Using to preselect the driver.
  2. In the New Database Connection dialog box, ensure the correct driver is selected in the Driver field.
  3. Provide the JDBC URL for the database connection in the Database URL field.

    This URL typically begins with jdbc:and a short code name for the driver, followed by another colon. The rest of the URL depends on the type of driver you are using. For example, you might need to specify a host and port; alternatively, the name of a database file might suffice, or an ODBC DSN. To help you get started, existing drivers are provided with templates for the correct URL format. If in doubt, refer to the documentation for the driver you are using.

  4. Provide the user name and password, if required by your database configuration.
  5. Click the Remember Password checkbox to have the IDE remember your password.

    The password is saved only for the current the IDE session. After restarting the IDE, you must type the password again. This feature can be turned on or off in the properties of each connected database in the Runtime window.

  6. Click OK to connect the IDE to the database.

    If the connection is successful, a new node appears on the same level as Drivers. The icon for a connected database shows complete. If the connection attempt fails, the IDE displays a dialog box indicating the connection is broken.

To display schema information for a database:

  1. Choose the Advanced tab on the New Database Connection panel.
  2. Select the schema to use with the database object by choosing it from the combo box. This schema will be used with getter database objects such as tables and views.
  3. Click OK.

    The database will connect to the database schema and the connection node in the Databases folder. The IDE displays child folders of this connection node. These Folders represent lists of tables, views and procedures.

To correct a broken connection:

  1. Correct the URL in the property sheet.
  2. Connect to the database from the contextual menu.

To disconnect from the database connection:


Legal Notices