> ## 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.

# Azure Synapse SQL observations

> Read a relation through a dedicated or serverless Azure Synapse SQL pool.

Mount [`@bijectionhq/app-sql`](https://docs.bijection.com/integrations/native-sql#mount-and-bind) once
per relation. Pass as `provider` a receiver bound with the SQL Server TDS receiver and
the workspace's fixed endpoint on port 1433.

```ts theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
export const remote = sqlServerRelation("workspace.sql.azuresynapse.net:1433", login, data);
```

Use `workspace-ondemand.sql.azuresynapse.net:1433` for serverless SQL. Grant
the SQL login SELECT and metadata visibility on the selected relation.
Seal this JSON for the receiver. Bind the receiver and the mount under the same `data` label, then initialize the mount.

```json theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
{
  "authentication": { "kind": "login", "username": "inventory_reader", "password": "<SQL password>" },
  "database": "inventory",
  "schema": "dbo",
  "relation": "items",
  "key": "id",
  "columns": ["name", "quantity_text"],
  "incarnation": "inventory-items-1"
}
```

Provide one unique, non-null BIGINT key and up to fifteen text columns. Use
a view to project other columns in the required representation. The driver
reads TDS columns directly. Dedicated SQL pools lack the nested `FOR JSON`
projection used by the ordinary SQL Server mode. Enable
`READ_COMMITTED_SNAPSHOT` for the dedicated pool. For serverless reads of
external tables, keep the underlying files stable while a page is read.
Network access must permit direct TDS and a verified TLS peer. The connector
refuses server-directed routing.

Each answer lands up to 32 observations and 48 KiB of encoded result data.
The key is a JSON array containing the exact decimal string. Rows contain
text or null. The connector checks the selected relation's identity around
the read and advances the exclusive key on successful publication. Sweeps
restart at the end. Missing keys remain. Use a fresh source incarnation
after a restore or replacement that can reuse catalog metadata. Change
tracking, CDC and writes are outside this profile.

[Dedicated SQL pool isolation](https://learn.microsoft.com/en-us/azure/synapse-analytics/sql/develop-transactions) ·
[Synapse connectivity](https://learn.microsoft.com/en-us/azure/synapse-analytics/security/connectivity-settings)


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