安排脚本的 BIML 生成?

schedule BIML generation of scripts?

我有一些 BIML 脚本(一起工作)

  1. 检查 cvs 文件的文件夹
  2. 创建包以导入这些文件

这很有用,但是,无论何时向该文件夹添加(或删除)文件,我都需要通过 运行 BIML 脚本重新生成包。

这可以自动化吗?那么biml脚本是运行,创建包然后执行包?

通过自动化正确的 click/generate SSIS 包,您的意思是将 Biml XML 转换为 DTSX 的 XML.

BidsHelper helps you achieve that using BimlExpandPlugin class

在 class BimlExpandPlugin 中,您会找到对 BidsHelper.CompileBiml

的版本特定调用
ValidationReporter validationReporter = BidsHelper.CompileBiml(typeof(AstNode).Assembly, "Varigence.Hadron.BidsHelperPhaseWorkflows.xml", "Compile", bimlScriptPaths, new List < string > (), tempTargetDirectory, projectDirectory, SqlServerVersion.SqlServer2008, ssisVersion, SsasVersion.Ssas2008);

ValidationReporter validationReporter = BidsHelper.CompileBiml(typeof(AstNode).Assembly, "Varigence.Hadron.BidsHelperPhaseWorkflows.xml", "Compile", bimlScriptPaths, new List < string > (), tempTargetDirectory, projectDirectory, SqlServerVersion.SqlServer2005, SsisVersion.Ssis2005, SsasVersion.Ssas2005);

Varigence offers that functionality existing for BidsHelper with their product Varigence Mist (now called BimlStudio).

注:

Microsoft SQL Server Business Intelligence Development Studio (BIDS) 和 Varigence Mist(现在称为 BimlStudio)集成开发环境的 BIDS Helper 插件;这两个工具都将 Biml 元数据转换为 Microsoft SQL 服务器平台的 SQL 服务器集成服务 (SSIS) 和 SQL 服务器分析服务 (SSAS) 资产。但是,可以创建发射器来为任何所需的 BI 平台编译 Biml。

正如 Amira 提到的,您需要 BimlStudio 产品的许可安装。

您要查找的命令是 bimlc

BimlC 参考文献

我以为我们在 The Biml Book 中有一个关于 CI/CD 的章节,但我目前没有看到它。 SSAS 章节中提到了 Bimlc,但我认为有更多关于它的信息。