I have the following tasks in my SQL Server 2012 package:
- Execute SQL Task to create a local temp table (I need to use local temp table as I will be firing off same concurrent packages)
- Data Flow Task: To export from a SQL Server table into the local temp table created in step 1. I have the RatainSameConnection option = TRUE for data sources and DelayValidation for both tasks to true.
Once I run the package, I get this error:
The metadata could not be determined because statement
select * from #tmptable uses a temp table.
I researched this a lot but couldn't find a good solution. Any help and sample working SSIS package will be appreciated.