DacStore.Install Method (DacType, DatabaseDeploymentProperties, )
Uses the specified DacType object to create a DAC instance in the instance of the Database Engine represented by the DacStore object.
Namespace: Microsoft.SqlServer.Management.Dac
Assembly: Microsoft.SqlServer.Management.Dac (in Microsoft.SqlServer.Management.Dac.dll)
Syntax
'Declaration
Public Function Install ( _
dacType As DacType, _
deploymentProperties As DatabaseDeploymentProperties, _
skipPolicyValidation As Boolean _
) As DacInstance
'Usage
Dim instance As DacStore
Dim dacType As DacType
Dim deploymentProperties As DatabaseDeploymentProperties
Dim skipPolicyValidation As Boolean
Dim returnValue As DacInstance
returnValue = instance.Install(dacType, _
deploymentProperties, skipPolicyValidation)
public DacInstance Install(
DacType dacType,
DatabaseDeploymentProperties deploymentProperties,
bool skipPolicyValidation
)
public:
DacInstance^ Install(
DacType^ dacType,
DatabaseDeploymentProperties^ deploymentProperties,
bool skipPolicyValidation
)
member Install :
dacType:DacType *
deploymentProperties:DatabaseDeploymentProperties *
skipPolicyValidation:bool -> DacInstance
public function Install(
dacType : DacType,
deploymentProperties : DatabaseDeploymentProperties,
skipPolicyValidation : boolean
) : DacInstance
Parameters
- dacType
Type: Microsoft.SqlServer.Management.Dac.DacType
A DacType object that specifies the DAC elements to create in the DAC instance.
- deploymentProperties
Type: Microsoft.SqlServer.Management.Dac.DatabaseDeploymentProperties
A DatabaseDeploymentProperties object that specifies the properties, such as name and data file, to be set for the database created to hold the DAC database objects.
- skipPolicyValidation
Type: Boolean
A Boolean value that specifies whether the installation should evaluate the DAC type server selection policy. Specify true to evaluate the policy. Specify false to skip evaluation. Specify false only if you have ensured the instance of the Database Engine can successfully host the DAC.
Return Value
Type: Microsoft.SqlServer.Management.Dac.DacInstance
A newly installed DAC instance.