I have an OLEDB (SQL) data stream source that pulls the result set from a stored procedure and outputs the results to the OLEDB (Oracle) data stream destination.
Is there a way to capture the aggregate value from a data set into a variable, all within the scope of a data flow task? In particular, I would like to capture MAX(<DateValue>)from the entire data set.

Otherwise, I would have to pull the same data twice in another data flow task, regardless of whether I point to A or in a new location, B.
EDIT: I already know how to do this in a control flow from an Execute SQL task. I ask because I am interested in knowing if I can do this in a data flow task, since I already collect data there. Is there a way to capture the aggregate value in a data stream?
source
share