1

There are 2 Option to use dynamic query in Execute SQL Task, Parameter Mapping and Expression.

Variable - where you create query on a variable e.g "Select * from" +@User::TableName Expression - where you create query direct to expression, same sample above.

Questions is which of the 2 is mostly used or better to use since this 2 have the same output?

1
  • Execute SQL task, component in SSIS. Commented Feb 25, 2014 at 4:00

1 Answer 1

1

You can use the Execute SQL Task for your case using variable or expression. There is nothing like which is better. It all depends on your requirement. Both of the options have its pros and cons, so it is hard to predict which is better in your case without knowing your requirement.

You may check

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.