简体   繁体   English

执行SQL任务编辑器

[英]Execute SQL Task Editor

There are 2 Option to use dynamic query in Execute SQL Task , Parameter Mapping and Expression. Execute SQL Task ,参数映射和表达式中有2个使用动态查询的选项。

Variable - where you create query on a variable eg "Select * from" +@User::TableName Expression - where you create query direct to expression, same sample above. Variable -在Variable上创建查询的位置,例如"Select * from" +@User::TableName Expression "Select * from" +@User::TableName Expression在上面直接创建到表达式的查询的位置,与上面的示例相同。

Questions is which of the 2 is mostly used or better to use since this 2 have the same output? 问题是,由于这2个具有相同的输出,因此是2个中最常用的还是更好用的?

You can use the Execute SQL Task for your case using variable or expression. 您可以根据情况使用变量或表达式来Execute SQL Task 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 您可以检查

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM