有没有一种方法可以将 SQL 脚本或一般的平面文件添加到 SSIS 项目中,以便它们与 dtsx
包捆绑到同一个 ispac
文件中?
示例用例:将 SQL 代码从“执行 SQL”任务中提取到一个单独的文件中,在该文件中它可以更轻松地处理源代码控制差异以进行同行评审等。
看起来同一项目目录中的杂项文件不会捆绑到 ispac
中,即使 Visual Studio 将它们识别为项目中的杂项文件也是如此。
最佳答案
没有。你不能。
来源:MSDN - Deploy Integration Services (SSIS) Projects and Packages
The project deployment file does not capture all of the information contained in the Integration Services project file (.dtproj extension). For example, additional text files that you use for writing notes are not stored in the project deployment file and thus are not deployed to the catalog.
由于 SQL 脚本也是带有 .SQL 扩展名的文本文件,看起来它们不会包含在 .ispac
存档部署文件中,即使您将它们放在 SSIS 项目中的“其他” 文件夹
这里是相关文字截图来自MSDN
关于sql-server - 在 SSIS 项目部署中捆绑 SQL 脚本和其他基于文件的资源,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40309274/