次の方法で共有


DacServices.GenerateDeployReport メソッド (DacPackage, DacPackage, String, DacDeployOptions)

指定した DacPackage インスタンスについて、ソースとターゲットのスキーマの違いをデータベースに配置するために必要なステップの XML レポートを作成します。

名前空間:  Microsoft.SqlServer.Dac
アセンブリ:  Microsoft.SqlServer.Dac (Microsoft.SqlServer.Dac.dll)

構文

'宣言
Public Shared Function GenerateDeployReport ( _
    sourcePackage As DacPackage, _
    targetPackage As DacPackage, _
    targetDatabaseName As String, _
    options As DacDeployOptions _
) As String
'使用
Dim sourcePackage As DacPackage 
Dim targetPackage As DacPackage 
Dim targetDatabaseName As String 
Dim options As DacDeployOptions 
Dim returnValue As String 

returnValue = DacServices.GenerateDeployReport(sourcePackage, _
    targetPackage, targetDatabaseName, _
    options)
public static string GenerateDeployReport(
    DacPackage sourcePackage,
    DacPackage targetPackage,
    string targetDatabaseName,
    DacDeployOptions options
)
public:
static String^ GenerateDeployReport(
    DacPackage^ sourcePackage, 
    DacPackage^ targetPackage, 
    String^ targetDatabaseName, 
    DacDeployOptions^ options
)
static member GenerateDeployReport : 
        sourcePackage:DacPackage * 
        targetPackage:DacPackage * 
        targetDatabaseName:string * 
        options:DacDeployOptions -> string
public static function GenerateDeployReport(
    sourcePackage : DacPackage, 
    targetPackage : DacPackage, 
    targetDatabaseName : String, 
    options : DacDeployOptions
) : String

パラメーター

  • targetDatabaseName
    型: System.String
    配置のターゲット データベースの名前。

戻り値

型: System.String
配置の各ステップを列挙する XML の文字列。

例外

例外 条件
DacServicesException

レポートの生成中に問題が生じた場合に発生します。

関連項目

参照

DacServices クラス

GenerateDeployReport オーバーロード

Microsoft.SqlServer.Dac 名前空間