Share via


DacUpgradeOptions.IgnoreDataLoss Property

Gets or sets a value that specifies whether to ignore data loss during a DAC upgrade. If objects that have been removed from the new DAC definition are present in the current database, they will be removed and all associated data will be lost if this property is set to true.

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

Syntax

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

value = instance.IgnoreDataLoss

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

Property Value

Type: System.Boolean
true if data loss will be allowed; false if the upgrade process will be blocked to avoid data loss.