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

# Validate SQL database tables

> Pair tables in Azure SQL Database, SQL Server, and Azure SQL Managed Instance with Fabric Tables through a Fabric connection you already have.

A Table Pair can use a table in a SQL database on either side, paired with a
Lakehouse Table, a Warehouse Table, or another SQL database table. You choose
a Fabric connection you already have, name the tables, and pair them like any
other Table. Owners and Contributors connect tables.

## Supported sources

| Source | Fabric connection |
| - | - |
| Azure SQL Database | A SQL connection that specifies a database |
| SQL Server | A SQL connection that specifies a database, including one that uses a gateway |
| Azure SQL Managed Instance | An Azure SQL Managed Instance connection that specifies a database |

Fabric uses one connection type for Azure SQL Database and SQL Server, so
those two connectors list the same connections. The connection and its
credentials stay in Fabric. General Validation saves which connection, schema,
and table each Table uses.

## Connect tables

1. Open **Connections**, find the connector under **Connector catalog**, and
   select **Enable connector**. The installer notebook includes the
   General Validation Copy pipeline by default (`INCLUDE_COPY_PIPELINE = True`)
   and copies no data until you connect or validate tables. If your Environment
   was installed without the Copy pipeline, an Owner can run a new installer
   notebook from **Environment → Manage Environment** to add it.
2. Select **Tables** on the connector's card.
3. Under **Connection**, choose the Fabric connection to the database. The
   list shows the connections of that type that specify a database and that
   your Fabric account can use. To create one, select
   **Manage connections in Fabric**, then **Refresh connections**.
4. Under **Tables to add**, enter each table or view as `schema.table`, one
   per line, such as `dbo.Orders`, and select **Add**. Put square brackets
   around a name that contains a dot or a square bracket or starts or ends
   with a space, such as `[sales.eu].[Orders]`, and write a `]` inside
   brackets as `]]`: `dbo.[Order]]s]` is the table `Order]s`.
5. Select the tables and select **Connect selected tables**. Connecting reads
   each table's columns through the connection. Fabric doesn't list a
   connection's tables, so connecting is the check: each table shows Ready,
   or Failed with **Details**. A Contributor who has not run validation yet
   approves validation runs first.
6. If the page shows **Share connection**, share the connection with your
   Environment's workspace identity; see [Access](#access).
7. Select **Add a Table Pair** next to a Ready table. In **Add Table Pair**,
   select **Use Fabric connection** on the source or target side, then choose
   the **Connector**, **Fabric connection**, and **Table**.

If you enable a connector before your Environment is set up, the installer
notebook includes the Copy pipeline by default. Disabling a connector hides it
and its tables from new Table Pairs; existing Table Pairs keep working.

## What happens on each Run

When a Run includes a SQL database table, the **General Validation Copy**
pipeline in your dedicated workspace copies the whole
table through your connection into your Results Lakehouse for that Run. The
Run's Tests read that copy, and the copy is removed when the pipeline
finishes. The rows move from your database into your own Fabric and never
reach General Validation. Connecting a table reads only its columns, and the
Table Pair editor shows each column's type as Fabric reports it, such as
`Int32` or `Decimal`. If Fabric cannot read the columns that way, connecting
copies the table once, as a Run does.

A SQL database table cannot be pinned to a version. Each Run copies the table
as it is when that Run starts.

## What it costs

Each Run uses your Fabric capacity for the copy and reads the source table
once, in full, so a large table adds time to the Run. In General Validation, a
Run on a SQL database table counts as one Run, like any other; see
[Plans and pricing](https://docs.generalvalidation.com/administration/plans.md).

## Access

The copy runs as your Environment's workspace identity, so the connection must
be shared with that identity. When a table or Run cannot use the connection,
the connector's page shows **Share connection**. The connection's owner can
select **Copy Fabric notebook snippet** and run it in any Fabric notebook to
add the workspace identity as a **User** on that connection, or select
**Manage connections in Fabric** and add the workspace identity (named after
your dedicated workspace) as a User directly in Fabric.

Once a connection is shared, anyone who can start validation in the
Environment can copy any table that connection's login can read into the
Results Lakehouse. Use a login that reads only the tables you validate.

## Limits

* Fabric's Copy activity can't stage `time`, `geography`, `geometry`,
  `hierarchyid`, or `sql_variant` columns for validation, so a table with one
  can't be validated. Such a table still connects, and its Runs fail. To
  validate it, connect a view of the table that leaves the column out, or
  that casts a `time` column to text.
* Each schema or table name must be 1 to 128 characters long and cannot contain `{`
  or `}`.
* Names are matched exactly, including case. Enter them as the database spells
  them.
* Up to 50 tables are connected at a time.
* The connection must name a database.

## When something goes wrong

| What you see | What to do |
| - | - |
| The connector's page says the workspace identity can't use this connection yet, or a table's **Details** or a Run's reason says it can't use the Table's Fabric connection. | Ask the connection's owner to run the snippet from **Copy Fabric notebook snippet** under **Share connection**, or add the workspace identity as a **User** in Fabric's Manage connections. Then select **Retry failed** or start a new Run. |
| A table shows Failed and **Details** says "Fabric's Get Metadata and Copy activities could not read this table." or "Fabric's Copy activity could not read this table." | **Details from Microsoft** beneath it gives Fabric's reason. Check the schema and table name, including case, and that the connection's login can read the table, then select **Retry failed**. |
| A table shows Failed and **Details** says "Table preparation finished without column metadata." | An Owner opens **Environment**, expands **Manage Environment**, runs a new installer notebook in Fabric, and updates the receipt to bring validation items up to date. Then select **Retry failed**. If the table fails again, open the Validation job's run in Fabric Monitor for the reason. |
| A Run's Tests show "Fabric's Copy activity could not copy a table." or "Fabric could not stage a Table. Open the Copy pipeline in your Environment for details." | Open the Run. Its page shows Fabric's reason under **Details from Microsoft**, such as a missing table, a login that can't read it, or a column of a type listed under [Limits](#limits). Fix the cause and start a new Run. |
| A Run's Tests show "Spark could not read the copy of a table that Fabric's Copy activity staged." or "Could not read a Table". | The usual cause is a `time` column. Connect a view of the table that leaves the column out or casts it to text; see [Limits](#limits). |
| No connections are listed, or the page says the connection is unavailable. | Create a connection in Fabric that specifies a database, or ask its owner to share it with you, then select **Refresh connections**. |


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