1

プログラムで BIML ファイルを dtsx パッケージにコンパイルしようとした人はいますか? 私は現在、ユーザーがメタデータを更新できる C#.NET でアプリケーションを作成しています。このデータが更新されたら、再コンパイル時に SSIS パッケージが追加/削除されるため、BIML ファイルを再コンパイルする必要があります。

別の SO の質問では、BIDS ヘルパーから機能をコピーすることをお勧めします。

BIML スクリプトから SSIS パッケージを自動生成

これを試しましたが、次のようなエラーが表示されます。

BimlEngine は BidsHelper からのみ実行できます

これは私のコードです:

        List<string> bimlScriptPaths = new List<string>();
        bimlScriptPaths.Add(@"C:\Users\soren\Documents\Visual Studio 2013\Projects\Integration Services Project2\Integration Services Project2\BimlScript.biml");
        string tempTargetDirectory = "C:\\";
        string projectDirectory = @"C:\Users\soren\Documents\Visual Studio 2013\Projects\Integration Services Project2";
        ValidationReporter v = BidsHelper.CompileBiml(
            typeof(AstNode).Assembly, 
            "Varigence.Biml.BidsHelperPhaseWorkflows.xml", 
            "Compile", 
            bimlScriptPaths, 
            new List<string>(), 
            tempTargetDirectory, 
            projectDirectory, 
            SqlServerVersion.SqlServer2008, 
            SsisVersion.Ssis2014, 
            SsasVersion.Ssas2008, 
            SsisDeploymentModel.Project);
4

0 に答える 0