DacServices.Deploy 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
제공된 패키지를 데이터베이스에 배포합니다.
public void Deploy(Microsoft.SqlServer.Dac.DacPackage package, string targetDatabaseName, bool upgradeExisting = false, Microsoft.SqlServer.Dac.DacDeployOptions options = default, System.Threading.CancellationToken? cancellationToken = default);
member this.Deploy : Microsoft.SqlServer.Dac.DacPackage * string * bool * Microsoft.SqlServer.Dac.DacDeployOptions * Nullable<System.Threading.CancellationToken> -> unit
Public Sub Deploy (package As DacPackage, targetDatabaseName As String, Optional upgradeExisting As Boolean = false, Optional options As DacDeployOptions = Nothing, Optional cancellationToken As Nullable(Of CancellationToken) = Nothing)
매개 변수
- package
- DacPackage
DacPackage 에는 배포할 스키마가 포함되어 있습니다.
- targetDatabaseName
- String
배포할 대상 데이터베이스의 이름입니다.
- upgradeExisting
- Boolean
원본 패키지에 포함된 스키마와 일치하도록 기존 데이터베이스 스키마를 수정할 수 있도록 하려면 True입니다. 기존 데이터베이스의 수정을 차단하려면 false입니다. 데이터베이스가 없으면 이 플래그가 적용되지 않습니다.
- options
- DacDeployOptions
해당 인스턴스는 배포의 DacDeployOptions 다양한 측면에 영향을 주는 속성을 지정합니다.
- cancellationToken
- Nullable<CancellationToken>
작업을 취소해야 함을 나타내는 데 사용할 수 있는 선택 사항 CancellationToken 입니다. 이 개체를 사용하면 작업이 취소되지 않습니다.
예외
필요한 매개 변수 값이 null 참조이거나 빈 문자열인 경우
true이고 대상 데이터베이스가 있는 경우 upgradeExisting 또는 배포 중에 오류가 발생하는 경우
취소가 CancellationToken 요청되었으며 작업을 취소할 수 있는 경우