SQL Query connection

To access your data in SQL Query, create a connection asset for it.

SQL Query is a service on IBM Cloud that you use to build, manage, and consume data lakes and their table assets in IBM Cloud Object Storage (COS). SQL Query provides functions to load, prepare, and query big data that is stored in various formats. It also includes a metastore with table definitions.

Prerequisites

Create a connection to SQL Query

To create the connection asset, you need these connection details:

Credentials

SQL Query uses the SSO credentials that are specified as a single API key, which authenticates a user or service ID.
The API key must have the following properties:

For Credentials, you can use secrets if a vault is configured for the platform and the service supports vaults. For information, see Using secrets from vaults in connections.

Choose the method for creating a connection based on where you are in the platform

In a project Click Add to project > Connection. See Adding a connection to a project.


In a catalog Click Add to catalog > Connection. See Adding a connection asset to a catalog.


In a deployment space Click Add to space > Connection. See Adding connections to a deployment space.


In the Platform assets catalog Click New connection. See Adding platform connections.

Next step: Add data assets from the connection

Where you can use this connection

You can use SQL Query connections in the following workspaces and tools:

Analytics projects

Catalogs

Restrictions

You can only use this connection for source data. You cannot write to data or export data with this connection.

SQL Query setup

To set up SQL Query on IBM Cloud Object Storage, see Getting started with IBM Cloud SQL Query.

Supported encryption

By default, all objects that are stored in IBM Cloud Object Storage are encrypted by using randomly generated keys and an all-or-nothing-transform (AONT). For details, see Encrypting your data. Additionally, you can use managed keys to encrypt the SQL query texts and error messages that are stored in the job information. See Encrypting SQL queries with Key Protect.

Running SQL statements

Video to learn more about SQL Query and how you can get started to run a basic query

Learn more

Parent topic: Supported connections