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

# migration-sqlserver-offline-index

> A SQL Server rowstore index may be built offline on an existing table.

## What it flags

Recognized rowstore `CREATE INDEX` statements against existing tables are reported when `ONLINE = OFF` is explicit or no `ONLINE` option is given. The checker uses an earlier literal `CREATE TABLE` in the same migration as evidence of a new table, accounting for recognized database context, transactions, and named savepoints. Uncertain database, schema, collation, or `TRY` and `CATCH` path matches are contextual. Computed SQL, rebuilds, special index types, and other unsupported statement forms are skipped.

## How to review

Check the edition, version, index type, database defaults, and deployment plan. If your runner continues after errors, verify that an earlier table creation succeeded and survives the runner's recovery. SQL Server can override the online default through database-scoped settings, and online builds can still acquire locks. The checker never rewrites the statement. [SQL Server online index guidance](https://learn.microsoft.com/sql/relational-databases/indexes/guidelines-for-online-index-operations)

Pass `--ignore migration-sqlserver-offline-index` to omit the rule.


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