I am wanting to have a user enter the database path they will be using.
For Example: @SourceDB = DatabaseA.dbo.
I would then like to use the variables in a Data Flow or Execute SQL task.
My question: How do I reference the variables in these two tasks? Neither of these ways seem to be working for me:
SELECT Field1, Field2 FROM @SourceDB + tablename
or
"SELECT Field1, Field2 FROM " + @[User::SourceDB] + "tablename"
or
SELECT Field1, Field2 FROM ? tablename