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 | |
---|---|---|
DacUpgradeOptions() | Initializes a DacUpgradeOptions object with no options set. | |
DacUpgradeOptions(Boolean, Boolean) | Obsolete. Initializes a DacUpgradeOptions object and sets the specified options. |
Top
Properties
Name | Description | |
---|---|---|
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. | |
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. | |
IgnoreDrift | Obsolete. Gets and sets the Ignore Drift upgrade option. | |
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. | |
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 | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
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.