Two ways of doing this:
Execute SQL Task to retrieve the SQL into a variable.
Another Execute SQL Tasks which executes the data in this variable
or
Excute SQL Task which store retrives the data into as SQL Server variable, and then use sp_executesql to execute the it.
Ole Kristian Velstadbråten Bangås -
Virinco -
Facebook -
TwitterConcatenating Row Values in Transact-SQL[/url]