UsingTemptableinSSISpackage-创新互联
My target is using SSIS to export the data into Excel file from SQL Command(OLB DB Source).
分享题目:UsingTemptableinSSISpackage-创新互联
文章分享:http://ybzwz.com/article/djshjo.html

However. I created a very simple demo to testing the functionality as below(SQL query thing) but nothing can be export successful.
declare @Temptabletable (Id int, Name nvarchar(50))
insert into @Temptable values(1, 'name1')
insert into @Temptable values(2, 'name2')
select Id, Name from @Temptable
In terms of the that SQL Command OLB DB Source component couldn't output the result.
Finally. I found out the solution is that need to set the NOCOUNT to ON
SET NOCOUNT ONdeclare @Temptabletable (Id int, Name nvarchar(50))
insert into @Temptable values(1, 'name1')
insert into @Temptable values(2, 'name2')
select Id, Name from @Temptable
分享题目:UsingTemptableinSSISpackage-创新互联
文章分享:http://ybzwz.com/article/djshjo.html