Skip to main content

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 Pass --ignore migration-sqlserver-offline-index to omit the rule.