> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SAP HANA database relation source

> Observe a local SAP HANA table through the SQL Command Network Protocol over TLS.

Pass `hanaRelation("hana.example:30015", login, data)` as `provider` in the [SQL mount](https://docs.bijection.com/integrations/native-sql.md#mount-and-bind).
Bind the receiver and the mount under the same `data` label.

Use the direct TLS SQL listener for one SAP HANA 2.0 tenant. Its certificate
must be trusted by the installation. The login must support `SCRAMPBKDF2SHA256`
with a server proof and report the tenant name at connection. The profile
uses one encrypted socket for negotiation and queries. Grant the account
visibility of the table in `SYS.TABLES` and `SYS.TABLE_COLUMNS` and read
access to that table. Seal the credential with `bijection secret set`.

```json theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
{
  "username": "INVENTORY_READER",
  "password": "<HANA password>",
  "database": "WAREHOUSE",
  "schema": "INVENTORY",
  "table": "ITEMS",
  "key": [{"column": "SITE_ID", "kind": "bigint"}, {"column": "ITEM_ID", "kind": "bigint"}],
  "columns": ["ITEM_ID", "DESCRIPTION", "QUANTITY"],
  "incarnation": "inventory-items-1"
}
```

Use exact catalog spelling and one local, persistent row- or column-store
table. Maintain the complete unique, non-null tuple of one to eight integer
columns. The position holds the ordered tuple as decimal strings in a JSON
array of up to 512 bytes. Project up to sixteen integer or bounded VARCHAR
or NVARCHAR columns. Each cell lands as a UTF-8 string or null, up to 240
encoded bytes.

Each page uses a read-only Repeatable Read transaction and publishes up to
32 rows and 48 KiB of encoded observations and position. Separate pages can
read different snapshots. The reader compares the table object ID, creation
time and selected columns before and after reading. Review DDL and rotate
the sealed incarnation after a restore, replacement or tenant repoint.
A catalog identity change requires a reset. Traversals refresh observed
keys and retain keys that disappear.

This mode provides no CDC. System-versioned rows give historical snapshots.
Commit-ordered capture also requires a source that exposes complete
transactions and a detectable retention floor.

[SAP HANA SQL Command Network Protocol Reference](https://help.sap.com/doc/63cef00e229b4010be06cfa01e1d338b/2.0.00/en-US/SAP_HANA_SQL_Command_Network_Protocol_Reference_en.pdf) ·
[SAP HANA transaction isolation](https://help.sap.com/docs/SAP_HANA_PLATFORM/4fe29514fd584807ac9f2a04f6754767/20fdf9cb75191014b85aaa9dec841291.html)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.