Instead of using the Execute Sql task, use a data flow task like this one.
- Use the source component to retrieve your data.
- Use the rowcount component to store your string in a variable
- Use the destination component of the recordset and save it in the source variable (type system.object)
Then return to the control flow and continue as you planned, using the rowcount variable to branch the control flow.
William salzman
source share