Partager via


DacActionValidator Class

Validates that the requirements of the DAC action (install, upgrade, or uninstall) are in place.

Inheritance Hierarchy

Object
  Microsoft.SqlServer.Management.Dac.DacActionValidator

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

Syntax

'Déclaration
Public NotInheritable Class DacActionValidator
'Utilisation
public static class DacActionValidator
public ref class DacActionValidator abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
type DacActionValidator =  class end
public final class DacActionValidator

The DacActionValidator type exposes the following members.

Methods

  Name Description
Public methodStatic member ValidateForInstall(ServerConnection, DacType) Validates that the specified instance of the Database Engine meets requirements for installing the specified DAC type.
Public methodStatic member ValidateForInstall(ServerConnection, DacType, Boolean) Validates that the specified instance of the Database Engine meets requirements for installing the specified DAC type.
Public methodStatic member ValidateForUninstall Validates that the specified instance of the Database Engine meets requirements for deleting the specified DAC isntance.
Public methodStatic member ValidateForUpgrade(DacInstance, DacInstance) Validates that the specified installed DAC instance and it's host instance of the Database Engine meet the requirements for upgrading the installed DAC instance to a new version of the same DAC type.
Public methodStatic member ValidateForUpgrade(DacInstance, DacInstance, Boolean) Validates that the specified installed DAC instance and it's host instance of the Database Engine meet the requirements for upgrading the installed DAC instance to a new version of the same DAC type.

Top

Remarks

The DacAction class verifies conditions such as having a valid connection to an instance of the Database Engine and that the current login has sufficient permissions. For an upgrade or uninstall, it also verifies that the current DAC instance can support the action.

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.

See Also

Reference

Microsoft.SqlServer.Management.Dac Namespace