I have a variable de_sters, the variable type string, as defined in my SSIS package, its scope - is the SSIS package, which I needed fillto value a few lines from one table Execute Sql Task.
The bottom line is that I have the Execute Sql Task package, in the properties -> "Sql Statement", which I wrote:
declare @s varchar(max) = ''
select @s = case when @s <> ''
then @s + ',''' + employer_name + ''''
else @s + '''' + employer_name+ ''''
end
from employers
select @s as Result
Then in Result SetI selected Single Row(first I ran my selection and I saw that it returns only one row). Then on the tab Result Set(left) I wrote in the field Result Name Result(an alias from my previous sql statement) and Variable Namewrote in the file User::de_sters.
But when I run the sql task, it gives me
The type of the value being assigned to variable "User::de_sters"
differs from the current variable type" error.
?