在SSIS包上提供帮助 [英] HElp on SSIS package

查看:91
本文介绍了在SSIS包上提供帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我需要创建一个与存储过程等效的SSIS包.该过程包含左连接,按组求和,按顺序排序,选择前1个,等等.关键字.在SSIS中这是否有可能,以便我无需使用存储过程即可工作.


Hi All,

I need to create an SSIS package equivalent to a stored procedure. The procedure contains Left joins, GroupBy Sum, Order BY , Select Top 1,etc. keywords. Is that all possible in SSIS so that i can work without using stored procedure.


Select TOP 1 tab1.[Name], SUM(tab2.[Quantity]) AS Sum  

from tab3 LEFT JOIN tab4 on tab4.[No] = tab3.ID
LEFT JOIN tab2 on tab4.[UserID] =  tab1.[idi]
LEFT JOIN  tab1 on tab1.[Name] = tab2.[Name]

WHERE tab3.EmployeeID = @EmpoyeeID
Group By tab1.[DomainName]
ORDER BY Sum DESC



这是查询.

请给我一些想法.



This is the query.

Please give me some idea.

THanks in advance.

推荐答案

在SQL中可以执行的任何操作都可以在SSIS中完成.根据上面提到的抽象要求,建议您在SSIS项目中使用BIDS中的执行SQL任务".此任务用于在MS SQL Server数据库上执行SQL和T-SQL.详细信息此处 [此处 [ ^ ]
Whatever you can do in SQL can be done in SSIS. As per your abstract requirement mentioned above, I suggest you to use Execute SQL Task from BIDS in SSIS project. This task is used to execute SQL and T-SQL on MS SQL Server databases. More information here [^] and here[^]


这篇关于在SSIS包上提供帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆