DacUpgradeOptions Class

Use this type to specify which options are taken when upgrading a DAC instance.

Inheritance Hierarchy

System.Object
  Microsoft.SqlServer.Management.Dac.DacUpgradeOptions

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

Syntax

'Declaration
Public Class DacUpgradeOptions
'Usage
Dim instance As DacUpgradeOptions
public class DacUpgradeOptions
public ref class DacUpgradeOptions
type DacUpgradeOptions =  class end
public class DacUpgradeOptions

The DacUpgradeOptions type exposes the following members.

Constructors

  Name Description
Public method DacUpgradeOptions() Initializes a DacUpgradeOptions object with no options set.
Public method DacUpgradeOptions(Boolean, Boolean) Obsolete. Initializes a DacUpgradeOptions object and sets the specified options.

Top

Properties

  Name Description
Public property BlockOnChanges 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.
Public property IgnoreDataLoss 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.
Public property IgnoreDrift Obsolete. Gets and sets the Ignore Drift upgrade option.
Public property RollbackOnFailure 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.
Public property SkipPolicyValidation Gets and sets the SkipPolicyValidation option that controls whether the upgrade evaluates the server selection policy in the DAC type used for the upgrade.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Remarks

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.