Share via


DacUpgradeOptions Constructor (Boolean, Boolean)

Note: This API is now obsolete.

Initializes a DacUpgradeOptions object and sets the specified options.

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

Syntax

'Declaration
<ObsoleteAttribute> _
Public Sub New ( _
    ignoreDrift As Boolean, _
    skipPolicyValidation As Boolean _
)
'Usage
Dim ignoreDrift As Boolean
Dim skipPolicyValidation As Boolean

Dim instance As New DacUpgradeOptions(ignoreDrift, _
    skipPolicyValidation)
[ObsoleteAttribute]
public DacUpgradeOptions(
    bool ignoreDrift,
    bool skipPolicyValidation
)
[ObsoleteAttribute]
public:
DacUpgradeOptions(
    bool ignoreDrift, 
    bool skipPolicyValidation
)
[<ObsoleteAttribute>]
new : 
        ignoreDrift:bool * 
        skipPolicyValidation:bool -> DacUpgradeOptions
public function DacUpgradeOptions(
    ignoreDrift : boolean, 
    skipPolicyValidation : boolean
)

Parameters

  • ignoreDrift
    Type: System.Boolean
    A Boolean value that specifies what action the upgrade takes if drift is detected. If True, the upgrade will proceed despite finding changes in the database that may cause some data to be missing from the upgraded database. Only specify True if you have previously analyzed the changes and have a plan in place for migrating the data manually. If False, the upgrade will stop if it detects drift.
  • skipPolicyValidation
    Type: System.Boolean
    A Boolean value that specifies whether upgrade evaluates the server selection policy in the DAC type. If True, the policy is evaluated and the upgrade stops if the evaluation fails. If False, the policy is not evaluated. Specify False only if you have reviewed the server selection policy and are sure the instance of the Database Engine can successfully host the new DAC type.