Connecting and executing SQL statements
Print
- Last Updated: April 19, 2021
- 1 minute read
- DataDirect Connectors
- JDBC
- Autonomous REST Connector 6.0
- Documentation
To use the driver to access data with DbVisualizer:
- Open DbVisualizer.
- From the menu, select Database>New Connection. When prompted to use the Connection Wizard, click OK.
-
Provide the following information when
prompted; then, click Next to
proceed:
- Connection alias: Type the name to be used when referring to this connection.
- Driver: Select the alias that you provided for your driver from the drop-down menu.
-
Provide values for the following fields;
then, click Finish.
- Database URL: Copy and paste your connection URL
into this field. The following example demonstrates how to connect using
the Sample property with no authentication. Note: You can also generate connection strings using the Autonomous REST Connector Configuration Manager. For more information, see Generating connection URLs with the Configuration Manager.
jdbc:datadirect:autorest:Sample='https://example.com/countries/';
- Database URL: Copy and paste your connection URL
into this field. The following example demonstrates how to connect using
the Sample property with no authentication.
- To execute SQL statements, select SQL Commander>New SQL Commander. A SQL Commander tab opens.
-
Select values for the following
fields:
- Database Connection: Select connection alias you provided for the connection from the drop-down menu.
- Schema: Select the schema you want to execute queries against from the drop-down menu.
-
In the SQL Commander tab, enter SQL
commands you want to execute; then select SQL
Commander>Execute. For example:
To select all of the rows from the
INFORMATION_SCHEMA.SYSTEM_TABLEStable:SELECT * FROM INFORMATION_SCHEMA.SYSTEM_TABLES