Hi,
I have a package where I'm supposed to load multiple text files. Before loading them into their respective tables however, I need to load each file into a temporary table for some customizing. Using a loop, I have the current file name in a variable. I need to write an SQL statement similar to this:
SELECT TOP 0 * INTO #temp_table FROM file_variable
So, the temp table needs to be dynamically created each time using the structure of the current load file. How can I do this in SSIS?
Thank you!