DacDeployOptions.BlockWhenDriftDetected Proprietà

Definizione

Ottiene o imposta un valore booleano che specifica se il sistema verificherà le differenze tra lo stato corrente del database e lo stato registrato del database e blocca la distribuzione se vengono rilevate modifiche. Anche se questa opzione è impostata su true, il rilevamento della deriva si verifica solo in un database se è stato distribuito in precedenza con l'opzione RegisterDataTierApplication abilitata.

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

Valore della proprietà

Se ha valore True, viene rilevata la deviazione; in caso contrario, false. Il valore predefinito è vero.

Attributi

Si applica a