Share via


DacDeployOptions.BlockWhenDriftDetected Property

Definition

Get or set boolean that specifies whether the system will check for differences between the present state of the database and the registered state of the database and block deployment if changes are detected. Even if this option is set to true, drift detection will only occur on a database if it was previously deployed with the RegisterDataTierApplication option enabled.

public bool BlockWhenDriftDetected { get; set; }
[Microsoft.SqlServer.Dac.OptionDescription(typeof(Microsoft.Data.Tools.Schema.Sql.CommandLine.CommandLineResources), "BlockWhenDriftDetected")]
public bool BlockWhenDriftDetected { get; set; }
member this.BlockWhenDriftDetected : bool with get, set
[<Microsoft.SqlServer.Dac.OptionDescription(typeof(Microsoft.Data.Tools.Schema.Sql.CommandLine.CommandLineResources), "BlockWhenDriftDetected")>]
member this.BlockWhenDriftDetected : bool with get, set
Public Property BlockWhenDriftDetected As Boolean

Property Value

True to error is drift is detected; otherwise, false. Default is true.

Attributes

Applies to