This topic has not yet been rated - Rate this topic

DacServices.Deploy Method

SQL Server 2012

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
DacPackage containing schema to be deployed.
targetDatabaseName
Type: System.String
Name of the target database for deployment.
upgradeExisting
Type: System.Boolean
True to allow modification of existing database schema in order to match schema contained in source package; otherwise false to block modification of existing database. If the database does not exist this flag has no effect.
options
Type: Microsoft.SqlServer.Dac.DacDeployOptions
Instance of DacDeployOptions that specifies properties that affect various aspects of the deployment.
cancellationToken
Type: System.Nullable<CancellationToken>
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

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.