Export (0) Print
Expand All

DacServices.Deploy Method

Deploys the supplied package to a database.

Namespace:  Microsoft.SqlServer.Dac
Assembly:  Microsoft.SqlServer.Dac (in Microsoft.SqlServer.Dac.dll)

public void Deploy(
	DacPackage package,
	string targetDatabaseName,
	bool upgradeExisting,
	DacDeployOptions options,
	Nullable<CancellationToken> cancellationToken
)

Parameters

package
Type: Microsoft.SqlServer.Dac.DacPackage
The DacPackage containing schema to be deployed.
targetDatabaseName
Type: String
The name of the target database for deployment.
upgradeExisting
Type: Boolean
true to allow modification of existing database schema in order to match schema contained in source package; false to block modification of existing database. If the database does not exist this flag has no effect.
options
Type: Microsoft.SqlServer.Dac.DacDeployOptions
The instance of DacDeployOptions that specifies properties that affect various aspects of the deployment.
cancellationToken
Type: Nullable<CancellationToken>
The optional CancellationToken that can be used to indicate that the operation should be cancelled. Use of this object does not guarantee that the operation will be cancelled.

ExceptionCondition
ArgumentException

If the value for any of the required parameters is a null reference or an empty string.

DacServicesException

upgradeExisting

OperationCanceledException

CancellationToken

Community Additions

ADD
Show:
© 2014 Microsoft