I have a SSIS package where I am running a SQL execution task to get some records, Then I am running a foreach loop iterating over ADO object returned and setting few variables values.
These variables are used for data flow task queries. I need to set expression for the variable.
In rows I have value something similar to "foo" + @[User::Bar] + "baz" (I set it using this expression directly, it works. I want to set it from sql output)
But when I get this value from SQL task to Variable expression, SSIS is escaping the quotes, I do not want to escape these for my task to work.
Saved Value : "foo" + @[User::Bar] + "baz"
Variable set : \"foo\" + @[User::Bar] + \"baz\"
Can anyone help me with this. I want expression as I have saved, due to this forceful escaping, my query is not getting set properly.



