Share via


DacUpgradeOptions.RollbackOnFailure Property

Gets or sets a value that specifies whether the upgrade process itself is wrapped inside transactions and can therefore be rolled back. If this option is set to false, all the changes to the current database are committed without transactions.

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

Syntax

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

value = instance.RollbackOnFailure

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

Property Value

Type: System.Boolean
true if the upgrade will be rolled back on failure; otherwise, false.