Hi ,
I wonder if someone could help me out with this error.
I have a stored procedure that has multiple temp tables and i am calling that SP (also passing parameters) in the ssis data flow task and as expected i am getting the warning saying that "No column information is returned by the source" . I know solution for this is to put a statement SET FMTONLY OFF; but it is still showing the same error.
Stored procedure looks like
create procedure [results_from_temp_tables]@Level varchar(50)
@Code varchar(50)
As
BEGIN
IF(@Level='Result1')
BEGIN
IF OBJECT_ID('tempdb..#result1_temp') IS NOT NULL DROP TABLE #territory_temp
select *
into #territory_temp
from table1
select col1,col2
from #territory_temp
END
ELSE
IF(@Level='Result2')
BEGIN
IF OBJECT_ID('tempdb..#result2_temp') IS NOT NULL DROP TABLE #result2_temp
select *
into #result2_temp
from table1
select col1,col2
from #result2_temp
END
ELSE
IF(@Level='Result3')
BEGIN
IF OBJECT_ID('tempdb..#result3_temp') IS NOT NULL DROP TABLE #result3_temp
select *
into #result3_temp
from table1
select col1,col2
from #result3_temp
END
END
I just gave you the idea how SP looks like but i have joins and filters in my actual SP.
Hope anyone have any idea how to resolve this.
Thanks in advance.
Kaish
Lava