Click here to Skip to main content
15,041,788 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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]

This is the query.

Please give me some idea.

THanks in advance.
Updated 15-Oct-12 0:48am

1 solution

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[^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900