有没有人尝试过以编程方式将 BIML 文件编译成 dtsx 包?我目前正在 C#.NET 中编写一个应用程序,用户可以在其中更新元数据。更新此数据后,需要重新编译 BIML 文件,因为重新编译时将添加/删除 SSIS 包。
在另一个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);
None
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)