다음을 통해 공유


DacServices.Deploy 메서드

Deploys the supplied package to a database.

네임스페이스:  Microsoft.SqlServer.Dac
어셈블리:  Microsoft.SqlServer.Dac(Microsoft.SqlServer.Dac.dll)

구문

‘선언
Public Sub Deploy ( _
    package As DacPackage, _
    targetDatabaseName As String, _
    upgradeExisting As Boolean, _
    options As DacDeployOptions, _
    cancellationToken As Nullable(Of CancellationToken) _
)
‘사용 방법
Dim instance As DacServices 
Dim package As DacPackage 
Dim targetDatabaseName As String 
Dim upgradeExisting As Boolean 
Dim options As DacDeployOptions 
Dim cancellationToken As Nullable(Of CancellationToken)

instance.Deploy(package, targetDatabaseName, _
    upgradeExisting, options, cancellationToken)
public void Deploy(
    DacPackage package,
    string targetDatabaseName,
    bool upgradeExisting,
    DacDeployOptions options,
    Nullable<CancellationToken> cancellationToken
)
public:
void Deploy(
    DacPackage^ package, 
    String^ targetDatabaseName, 
    bool upgradeExisting, 
    DacDeployOptions^ options, 
    Nullable<CancellationToken> cancellationToken
)
member Deploy : 
        package:DacPackage * 
        targetDatabaseName:string * 
        upgradeExisting:bool * 
        options:DacDeployOptions * 
        cancellationToken:Nullable<CancellationToken> -> unit
public function Deploy(
    package : DacPackage, 
    targetDatabaseName : String, 
    upgradeExisting : boolean, 
    options : DacDeployOptions, 
    cancellationToken : Nullable<CancellationToken>
)

매개 변수

  • targetDatabaseName
    유형: System.String
    Name of the target database for deployment.
  • upgradeExisting
    유형: 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.

예외

예외 조건
ArgumentException

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

DacServicesException

upgradeExisting

OperationCanceledException

CancellationToken

참고 항목

참조

DacServices 클래스

Microsoft.SqlServer.Dac 네임스페이스