• You can run the query in an Execute SQL Task and store the result in a variable.

    You can only see the actual value of the variable though when debugging the package.

    I'm not sure that's what you want?

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP