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.
命名空间: Microsoft.SqlServer.Management.Dac
程序集: Microsoft.SqlServer.Management.Dac(在 Microsoft.SqlServer.Management.Dac.dll 中)
语法
声明
Public Shared Function ValidateForUpgrade ( _
currentDacInstance As DacInstance, _
dacInstanceToBeDeployed As DacInstance _
) As DeploymentValidationException
用法
Dim currentDacInstance As DacInstance
Dim dacInstanceToBeDeployed As DacInstance
Dim returnValue As DeploymentValidationException
returnValue = DacActionValidator.ValidateForUpgrade(currentDacInstance, _
dacInstanceToBeDeployed)
public static DeploymentValidationException ValidateForUpgrade(
DacInstance currentDacInstance,
DacInstance dacInstanceToBeDeployed
)
public:
static DeploymentValidationException^ ValidateForUpgrade(
DacInstance^ currentDacInstance,
DacInstance^ dacInstanceToBeDeployed
)
static member ValidateForUpgrade :
currentDacInstance:DacInstance *
dacInstanceToBeDeployed:DacInstance -> DeploymentValidationException
public static function ValidateForUpgrade(
currentDacInstance : DacInstance,
dacInstanceToBeDeployed : DacInstance
) : DeploymentValidationException
参数
- currentDacInstance
类型:Microsoft.SqlServer.Management.Dac. . :: . .DacInstance
A DacInstance object specifying the DAC instance to be upgraded.
- dacInstanceToBeDeployed
类型:Microsoft.SqlServer.Management.Dac. . :: . .DacInstance
A DacInstance object specifying the DAC instance providing the new DAC type used for the upgrade.
返回值
类型:Microsoft.SqlServer.Management.Dac. . :: . .DeploymentValidationException
Returns null if the validation was successful. Otherwise, returns a DeploymentValidationException object reporting the issues encountered.
注释
The ValidateForUpgrade method verifies conditions such as having a valid connection to an instance of the Database Engine and that the current login has sufficient permissions.