Skip to main content
This guide walks you through installing a driver, creating a connection, and running a SQL query.

Step 1: List available drivers

This returns all CData JDBC drivers discovered in ./ and ./lib/. If the driver you need isn’t listed, download it from CData’s driver catalog (the jar is saved to ./lib by default):
See Adding drivers for more options.

Step 2: Activate a driver

To activate a driver with a license key:
To start a free trial:

Step 3: Review connection properties

Before creating a connection, view the available connection properties for a driver:

Step 4: Create a connection

The connection is saved as an encrypted .conn file. See Connection files for details.

Step 5: Explore metadata

Before building a query, explore the tables and columns available in the data source. Browse available tables:
Browse columns for a specific table:

Step 6: Run a query

Using the tables and columns you discovered, build and run a SQL query:
Output is returned as JSON. By default, the resultset array contains the rows returned by the driver:
Add --metadata to also include a metadata array describing the columns returned. See Output format for a full explanation of the output structure. Use --compact for single-line JSON output: