SSIS 包中的存储过程

发布于 2024-12-07 14:10:54 字数 95 浏览 1 评论 0原文

我们正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

翻身的咸鱼 2024-12-14 14:10:54

在 SSIS 中可以轻松使用合并语句是正确的,并且不需要将所有内容封装在 SSIS 中,因为 SQL 处理聚合比 SSIS 更快等。此外,如果您没有部署到 SSISDB 或没有适当的日志记录包装器或电子邮件警报,那么通过 SQL 代理对您的 ETL 进行故障排除将比其他方式更加困难,因为错误通常更加神秘 - 因此 2012 年的 SSISDB 及其报告SSIS 可以非常强大

这是相当明显的基准,它将告诉您永远不要在 SSIS 中使用开箱即用的 SCD。然而,Taskfactory 确实有一个很好的可部署工具,它基本上可以在幕后合并。

SSIS比存储过程有更强大的功能。
但是,您可以轻松地在 SSIS 中使用“执行 T-SQL 语句”任务来执行现有任务,然后从那里进行构建。

  • 绝大多数 ETL 方面都表现出色

SSIS 在以下

  1. : Microsoft Integration Services 是一个用于构建企业级数据集成和数据转换解决方案的平台。您可以使用 Integration Services 来解决复杂的业务问题,方法是复制或下载文件、定义业务逻辑、发送电子邮件以响应事件、更新数据仓库、清理和挖掘数据以及管理 SQL Server 对象和数据。这些软件包可以单独工作,也可以与其他软件包配合使用,以满足复杂的业务需求。集成服务可以从多种来源(例如 XML 数据文件、平面文件和关系数据源)提取和转换数据,然后将数据加载到一个或多个目标位置。

集成服务包括一组丰富的内置任务和转换;构建包的工具;以及用于运行和管理包的 Integration Services 服务。您可以使用图形集成服务工具来创建解决方案,而无需编写任何代码;或者,您可以对扩展的 Integration Services 对象模型进行编程,以编程方式创建包并编写自定义任务和其他包对象。

  1. SQL Server 中的存储过程是一组一个或多个 Transact-SQL 语句或对 Microsoft .NET Framework 公共运行时语言 (CLR) 方法的引用。它们可以从 SSIS 内部调用,就像未封装的 SQL 语句一样。有关详细信息,请参阅:http: //msdn.microsoft.com/en-us/library/ms190782(v=sql.110).aspx

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.

  • SSIS is superior at the vast majority of ETL

Below Via Microsoft

  1. Microsoft Integration Services is a platform for building enterprise-level data integration and data transformations solutions. You use Integration Services to solve complex business problems by copying or downloading files, defining business logic, sending e-mail messages in response to events, updating data warehouses, cleaning and mining data, and managing SQL Server objects and data. The packages can work alone or in concert with other packages to address complex business needs. Integration Services can extract and transform data from a wide variety of sources such as XML data files, flat files, and relational data sources, and then load the data into one or more destinations.

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.

  1. A stored procedure in SQL Server is a group of one or more Transact-SQL statements or a reference to a Microsoft .NET Framework common runtime language (CLR) method. They can be called from within SSIS just the same as the unencapsulated SQL statement. For more information about it, please see: http://msdn.microsoft.com/en-us/library/ms190782(v=sql.110).aspx
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文