The code is easier than you might think:
I would store the result in an SSIS variable and populate a column in the data flow using a derived column and this variable.
That way you won't have to execute an additional Execute SQL Task.
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP