Sergiy wrote:You need to declare those variables in sp_executesql as OUTPUT parameters
And map them to package variables, to use them in subsequent tasks.
The absence of evidence is not evidence of absence
- Martin Rees
The absence of consumable DDL, sample data and desired results is, however, evidence of the absence of my response
- Phil Parkin