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

# Microsoft Fabric Warehouse SQL observations

> Read a relation from a Fabric Warehouse through its TDS endpoint.

Mount [`@bijectionhq/app-sql`](https://docs.bijection.com/integrations/native-sql#mount-and-bind) once
per relation. Use the Fabric SQL connection string's host on port 1433 and
bind the SQL app's `provider` using the SQL Server TDS receiver.

```ts theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
const provider = sqlServerRelation(
  "warehouse-id.datawarehouse.fabric.microsoft.com:1433", credential, data,
);
```

Fabric Warehouse requires Microsoft Entra authentication. Grant the principal
access to the Warehouse and SELECT and metadata visibility for the selected
relation. Seal an Entra access token for the SQL audience in this receiver
credential. Rotate the token by setting its secret again. Pass the same label to the receiver binder and as the app's `data`, then initialize.

```json theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
{
  "authentication": { "kind": "entra", "access_token": "<Microsoft Entra SQL access token>" },
  "database": "Inventory",
  "schema": "dbo",
  "relation": "items",
  "key": "id",
  "columns": ["name", "quantity_text"],
  "incarnation": "inventory-items-1"
}
```

Declare one unique, non-null BIGINT key and up to fifteen text columns. Fabric
key constraints can be unenforced, so maintain uniqueness in the source.
Use a view to project other columns as text. Fabric uses snapshot isolation
and allows `FOR JSON` only as a final operator, so the reader takes one SELECT
page with native TDS columns. TLS verifies the fixed endpoint. The connector
refuses server-directed routing.

Rows preserve text or null and use the exact decimal key in a JSON array.
Each answer carries up to 32 rows and 48 KiB of encoded result data. A sweep
uses an exclusive key boundary, checks the selected relation's identity and
restarts after the last page. Missing keys remain. Install a fresh incarnation
after a restore or replacement that can reuse catalog metadata. Change
tracking, CDC and writes are outside this profile.

[Fabric connectivity](https://learn.microsoft.com/en-us/fabric/data-warehouse/connectivity) ·
[Fabric Entra authentication](https://learn.microsoft.com/en-us/fabric/data-warehouse/entra-id-authentication)


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