SSIS 包中的存储过程
我们正在使用 SSIS 包进行一个庞大的数据迁移项目。我们坚持不要在 SSIS 包中使用存储过程。您能否建议我们是否应该在 SSIS 包中使用存储过程?使用存储过程有什么优点?
We are doing a huge Data Migration Project using SSIS packages. We were insisted on not using stored procedures in SSIS packages. Can you please suggest whether we should be using stored procedures in SSIS packages or not? What are the advantages of using stored procedures?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 SSIS 中可以轻松使用合并语句是正确的,并且不需要将所有内容封装在 SSIS 中,因为 SQL 处理聚合比 SSIS 更快等。此外,如果您没有部署到 SSISDB 或没有适当的日志记录包装器或电子邮件警报,那么通过 SQL 代理对您的 ETL 进行故障排除将比其他方式更加困难,因为错误通常更加神秘 - 因此 2012 年的 SSISDB 及其报告SSIS 可以非常强大。
这是相当明显的基准,它将告诉您永远不要在 SSIS 中使用开箱即用的 SCD。然而,Taskfactory 确实有一个很好的可部署工具,它基本上可以在幕后合并。
SSIS比存储过程有更强大的功能。
但是,您可以轻松地在 SSIS 中使用“执行 T-SQL 语句”任务来执行现有任务,然后从那里进行构建。
SSIS 在以下
集成服务包括一组丰富的内置任务和转换;构建包的工具;以及用于运行和管理包的 Integration Services 服务。您可以使用图形集成服务工具来创建解决方案,而无需编写任何代码;或者,您可以对扩展的 Integration Services 对象模型进行编程,以编程方式创建包并编写自定义任务和其他包对象。
It is correct that merge statements can easily be used in SSIS and your directive to encapsulate everything in SSIS is not necessary, as SQL processing aggregations faster than SSIS, for example. Further, if you are not deploying to SSISDB or have proper logging wrappers or email alerts, then troubleshooting your ETL is going to be more difficult via the SQL agent than otherwise as the errors are frequently more cryptic - thus the SSISDB and its reports in 2012. SSIS can be extremely powerful, however.
Here is a fairly blatant benchmark that will tell you never to use the out of the box SCD ever in SSIS. Taskfactory however does have a nice deployable which does basically merges behind the scene.
SSIS has more powerful functions than Stored Procedures.
However you can easily use Execute T-SQL Statement tasks in SSIS for existing tasks, and then build out from there.
Below Via Microsoft
Integration Services includes a rich set of built-in tasks and transformations; tools for constructing packages; and the Integration Services service for running and managing packages. You can use the graphical Integration Services tools to create solutions without writing a single line of code; or you can program the extensive Integration Services object model to create packages programmatically and code custom tasks and other package objects.