Método ValidateForInstall (SqlStoreConnection, DacType)
Observação: essa API está obsoleta.
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 (em Microsoft.SqlServer.Management.Dac.dll)
Sintaxe
'Declaração
<ObsoleteAttribute> _
Public Shared Function ValidateForInstall ( _
connection As SqlStoreConnection, _
dacType As DacType _
) As DeploymentValidationException
'Uso
Dim connection As SqlStoreConnection
Dim dacType As DacType
Dim returnValue As DeploymentValidationException
returnValue = DacActionValidator.ValidateForInstall(connection, _
dacType)
[ObsoleteAttribute]
public static DeploymentValidationException ValidateForInstall(
SqlStoreConnection connection,
DacType dacType
)
[ObsoleteAttribute]
public:
static DeploymentValidationException^ ValidateForInstall(
SqlStoreConnection^ connection,
DacType^ dacType
)
[<ObsoleteAttribute>]
static member ValidateForInstall :
connection:SqlStoreConnection *
dacType:DacType -> DeploymentValidationException
public static function ValidateForInstall(
connection : SqlStoreConnection,
dacType : DacType
) : DeploymentValidationException
Parâmetros
- connection
Tipo: Microsoft.SqlServer.Management.Sdk.Sfc. . :: . .SqlStoreConnection
A SqlStoreConnection object representing the connection to the instance of the Database Engine where the DAC instance will be installed.
- dacType
Tipo: Microsoft.SqlServer.Management.Dac. . :: . .DacType
A DacType object specifying the DAC type to use in creating the DAC instance.
Valor de retorno
Tipo: Microsoft.SqlServer.Management.Dac. . :: . .DeploymentValidationException
Returns null if the validation was successful. Otherwise, returns a DeploymentValidationException object reporting the issues encountered.
Comentários
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.
Consulte também