Datasource setup

Connect SAP HANA

Give Querio a dedicated HANA login, connect to the SQL endpoint, and verify access to an approved table.

Connect SAP HANA with a dedicated database login, then check that Querio can read an approved table as the intended user. A successful connection test alone does not check table access.

Before you start

You need permission to manage datasources and credentials in Querio. Ask a HANA administrator for the database's SQL endpoint, port, TLS requirements, and the schemas and tables approved for analysis. Choose a small result you can check independently under the same database identity.

1. Create an identity and grant SELECT

Have the HANA administrator create a dedicated, non-human user for Querio. For example, where your password policy permits:

CREATE USER QUERIO_READER PASSWORD "REPLACE_WITH_POLICY_PASSWORD"
NO FORCE_FIRST_PASSWORD_CHANGE;

Use a policy-compliant secret and have the administrator apply your instance's user-group and account rules. NO FORCE_FIRST_PASSWORD_CHANGE lets the administrator set the final password at creation; Querio's connection form cannot complete an interactive first-login password change. See SAP's CREATE USER reference.

Have the object owner or an authorized grantor give this user SELECT on each approved table or view. For example:

GRANT SELECT ON "REPORTING"."ORDERS" TO QUERIO_READER;

Replace the synthetic names with your approved objects. Check inherited roles and any additional restrictions on the target views. SELECT grants access to rows; SELECT METADATA is a separate catalog privilege to review if expected metadata is missing. It does not replace SELECT. See SAP's GRANT reference.

Keep the password in Querio's connection form, out of prompts, screenshots and shared notes.

2. Gather the endpoint and TLS requirements

For HANA Cloud, find the database instance in SAP HANA Cloud Central and choose Actions > Copy SQL Endpoint. Use its SQL hostname and port, not the administration website URL. For other HANA deployments, get the database SQL endpoint from your administrator. Do not assume the same port for every instance. See SAP's SQL endpoint procedure.

Confirm that the SQL endpoint accepts traffic from Querio. Copy IP Address in the datasource form gives Querio's listed outbound addresses; confirm they apply to your deployment. For HANA Cloud, have the administrator update the approved source addresses without removing other required entries. SAP recommends restricting access to trusted IP addresses.

Ask whether the server certificate is trusted by Querio's execution environment and matches the endpoint hostname. Private network, private CA or client-certificate requirements need coordination with Querio before connecting. The shared SSH Tunnel form supports PostgreSQL and MySQL clients, not HANA. See provider boundaries.

3. Connect and test

  1. Open Settings > Datasources > Add datasource, choose Internal, and enter a unique Slug such as hana-analytics. Add an optional Name.
  2. Choose SAP HANA as Database type.
  3. Enter the complete Connection string, replacing the synthetic host, port and password:
hana://QUERIO_READER:ENCODED_PASSWORD@hana.example.com:443?encrypt=true&sslValidateCertificate=true
  1. Optionally enter Schema, such as REPORTING. Enter the stored name without SQL quotation marks. Querio quotes it when setting the current schema. Leaving it unset uses the login's default schema. This field does not grant access or confine queries to that schema.
  2. Select Test connection. Resolve any failure, then select Create. Creation tests the supplied connection again before saving. Confirm that the datasource appears in settings.

The example requests TLS with server-certificate validation through encrypt=true&sslValidateCertificate=true. The HANA form has no separate TLS switch or certificate upload. Trust-store paths refer to Querio's execution environment, not your laptop. See SAP's Python connection properties.

Percent-encode reserved characters in URI credentials. For example, the synthetic password p@ss:word becomes p%40ss%3Aword. Current connector normalization does not preserve spaces in usernames or passwords; contact Querio before using such a credential.

HANA uppercases unquoted SQL identifiers; quoted identifiers preserve case. If a schema was created as "Reporting", enter Reporting in Schema, not reporting or "Reporting". Use the exact stored names when selecting tables and writing quoted SQL. See SAP's case-sensitivity examples.

4. Add tables and run a query

Follow Connect a datasource to review credential assignments and add the approved tables. The first credential is initially assigned to Everyone. An intended user needs datasource permission and exactly one distinct authorized credential to query; see credential selection.

As that user, start an Explore with the HANA datasource selected and ask for a small, filtered read. Check the generated SQL and result. For example, replace these synthetic names and ID with a record you can verify:

SELECT "ORDER_ID", "STATUS"
FROM "REPORTING"."ORDERS"
WHERE "ORDER_ID" = 1001;

Compare the returned row with an independent result under the same database identity and filters. An empty result is acceptable only when it matches that expectation. The HANA connection probe runs SELECT 1 FROM DUMMY; it does not prove access to REPORTING.ORDERS, metadata discovery or the intended user's credential selection. See datasource checks.

If a check fails

SymptomNext check
Timeout or unreachable hostCheck SQL hostname, port, DNS, firewall and approved source addresses.
Authentication failureCheck the exact login, password, account status and any first-login password change. Check the credential-space limitation above.
Certificate or TLS failureCheck the endpoint hostname, certificate chain and runtime trust with Querio. Keep certificate validation enabled.
Invalid schema or missing tablesCheck stored identifier case, Schema, target database and metadata access. Refresh the selected tables after correcting access.
Probe succeeds but a table query failsCheck SELECT on the table or view and any database policies for the saved identity.
Intended user gets 403 or a credential-conflict 409Check datasource permission and credential grant paths in Groups.
Query result differs from the expected resultCompare identity, quoted names, filters and database policies before accepting the answer.

Continue with Analyze your data, then Improve context with the table grain, relationships and definitions your analysis needs.

Was this page helpful?

Last updated on November 18, 2026

On this page