Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

Unable to pass SQL execute Task Result set values to Data Flow component. Expand / Collapse
Posted Saturday, June 1, 2013 11:14 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Saturday, January 9, 2016 8:36 PM
Points: 43, Visits: 507
Hi All,
I’m facing following issue in SSIS package, I need to get records in one table. Then each value should be passed to another query in data flow task.

What I have done so far is,
1) Created execute sql task with full result set as return, ' SELECT G.GROUPID FROM DBO.RPTGROUP G’
2) Created For Each Loop and connect to 1) Foreach.ADO enumerator.ADO obj source
ADO Object source variable selected in drop down list with enumeration mode.
3) Created DF task, in that have OLE DB source query, I will be passing the result values as parameter.

When I executing the package only 1 st value of SQL execute task value passed to for each Data flow source component & executed successfully.

I’ve 3 values in SQL execute task output, but only one value currently passed to Data flow source.
I’ve tested by pacing the script task inside the for each control flow, I will be getting 3 values from SQL execute task.

So for each loop container working fine, but unable to pass all the values to data flow source.

Please help me to pass all the result set value of the SQL task to for each container Data flow source.

Post #1458982
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse