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.
네임스페이스: Microsoft.SqlServer.Management.Dac
어셈블리: Microsoft.SqlServer.Management.Dac(Microsoft.SqlServer.Management.Dac.dll)
구문
‘선언
Public Shared Function ValidateForUpgrade ( _
currentDacInstance As DacInstance, _
dacInstanceToBeDeployed As DacInstance, _
skipPolicyValidation As Boolean _
) As DeploymentValidationException
‘사용 방법
Dim currentDacInstance As DacInstance
Dim dacInstanceToBeDeployed As DacInstance
Dim skipPolicyValidation As Boolean
Dim returnValue As DeploymentValidationException
returnValue = DacActionValidator.ValidateForUpgrade(currentDacInstance, _
dacInstanceToBeDeployed, skipPolicyValidation)
public static DeploymentValidationException ValidateForUpgrade(
DacInstance currentDacInstance,
DacInstance dacInstanceToBeDeployed,
bool skipPolicyValidation
)
public:
static DeploymentValidationException^ ValidateForUpgrade(
DacInstance^ currentDacInstance,
DacInstance^ dacInstanceToBeDeployed,
bool skipPolicyValidation
)
static member ValidateForUpgrade :
currentDacInstance:DacInstance *
dacInstanceToBeDeployed:DacInstance *
skipPolicyValidation:bool -> DeploymentValidationException
public static function ValidateForUpgrade(
currentDacInstance : DacInstance,
dacInstanceToBeDeployed : DacInstance,
skipPolicyValidation : boolean
) : 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.
- skipPolicyValidation
유형: System. . :: . .Boolean
A Boolean specifying whether validation of the server selection policies in the new DAC type should be skipped. Specify true to skip policy validation, false otherwise.
반환 값
유형: 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.