Redgate Flyway

SQL Server Add Online On When Creating Indexes Or Altering Columns Setting

Description

Adds the ONLINE = ON option when creating relational indexes or altering columns.

Note that some indexes can't be created with ONLINE = ON within a transaction.

Type

Boolean

Default

false

Usage

Flyway Desktop

This can be set from the comparison options settings in SQL Server projects.

Command-line

./flyway diff -redgateCompare.sqlserver.options.behavior.addOnlineOnWhenCreatingIndexesOrAlteringColumns=true

TOML Configuration File

[redgateCompare.sqlserver.options.behavior]
addOnlineOnWhenCreatingIndexesOrAlteringColumns = true

This documentation contains proprietary information and is protected by copyright law.
Copyright © 2026 Red Gate Software Limited. All rights reserved


Didn't find what you were looking for?