Hi everyone.
I am working on a SSIS project, and I am stuck with store proc with temp table.
I am trying to use stored proc created for report as a data source and move result into other database table.
Store proc first generate #temp table, then creates #temp noncluster index, then select statement to call data from #temp table (with multiple joins).
Store proc was developed for report and optimized for data read. However, when I try to use this stored proc as data source, I get 'Invalid Object name #Temp Table' error.
I did some research, but only thing I see is mostly calling data stored in temp table and using temp table for the source. My case is bit different... temp table is used, but it goes through another multiple joins and returns result.
Any suggestions?
Thank you all for reading this!