DacActionValidator.ValidateForInstall Method (ServerConnection, DacType)
Validates that the specified instance of the Database Engine meets requirements for installing the specified DAC type.
Namespace: Microsoft.SqlServer.Management.Dac
Assembly: Microsoft.SqlServer.Management.Dac (in Microsoft.SqlServer.Management.Dac.dll)
Syntax
'Declaration
Public Shared Function ValidateForInstall ( _
connection As ServerConnection, _
dacType As DacType _
) As DeploymentValidationException
'Usage
Dim connection As ServerConnection
Dim dacType As DacType
Dim returnValue As DeploymentValidationException
returnValue = DacActionValidator.ValidateForInstall(connection, _
dacType)
public static DeploymentValidationException ValidateForInstall(
ServerConnection connection,
DacType dacType
)
public:
static DeploymentValidationException^ ValidateForInstall(
ServerConnection^ connection,
DacType^ dacType
)
static member ValidateForInstall :
connection:ServerConnection *
dacType:DacType -> DeploymentValidationException
public static function ValidateForInstall(
connection : ServerConnection,
dacType : DacType
) : DeploymentValidationException
Parameters
- connection
Type: Microsoft.SqlServer.Management.Common.ServerConnection
A ServerConnection object representing the connection to the instance of the Database Engine where the DAC instance will be installed.
- dacType
Type: Microsoft.SqlServer.Management.Dac.DacType
A DacType object specifying the DAC type to use in creating the DAC instance.
Return Value
Type: Microsoft.SqlServer.Management.Dac.DeploymentValidationException
Returns null if the validation was successful. Otherwise, returns a DeploymentValidationException object reporting the issues encountered.
Remarks
The ValidateForInstall method verifies conditions such as having a valid connection to an instance of the Database Engine and that the current login has sufficient permissions.