Let's say I have the following scenario
Select
age
,address
,full_name
from
[dbo].customers
I want to replace the [dbo] part with an ssis variable, so when we go to run this package and need to replace the schema, it's a piece of cake.
What I have tried so far was creating a SQL variable, named schema_var_name, and appending it to the front, but this is not working out for me.
Can you tell me what I am doing wrong?
Here is what I have:
"Select
age
,address
,full_name
from
'@[User::schema_var_name]' + '.[customers]' "
