Share via


DacUpgradeOptions.BlockOnChanges Property

Gets or sets a value that specifies whether to block a DAC upgrade because of drift. Drift occurs when a database is changed outside of the DAC deployment and upgrade process.

Namespace:  Microsoft.SqlServer.Management.Dac
Assembly:  Microsoft.SqlServer.Management.Dac (in Microsoft.SqlServer.Management.Dac.dll)

Syntax

'Declaration
Public Property BlockOnChanges As Boolean
    Get
    Set
'Usage
Dim instance As DacUpgradeOptions
Dim value As Boolean

value = instance.BlockOnChanges

instance.BlockOnChanges = value
public bool BlockOnChanges { get; set; }
public:
property bool BlockOnChanges {
    bool get ();
    void set (bool value);
}
member BlockOnChanges : bool with get, set
function get BlockOnChanges () : boolean
function set BlockOnChanges (value : boolean)

Property Value

Type: System.Boolean
true if the upgrade should be blocked when drift is present; false to eliminate drift during the upgrade process.