SSIS表达

时间:2016-02-02 22:03:22

标签: ssis ssis-2012 ssis-2008

 SELECT CAST(Count(1) as VARCHAR(30)) AS SourceRowCount 
 FROM table 
 where countryid= 1 
 AND locationid =2

预期输出

split()

1 个答案:

答案 0 :(得分:1)

使用“控制流”中的“执行SQL任务”步骤执行查询,将两个变量值作为参数传递,并将值返回到另一个变量https://www.simple-talk.com/sql/ssis/ssis-basics-using-the-execute-sql-task-to-generate-result-sets/