Quantcast
Viewing all articles
Browse latest Browse all 24688

Flat file to dynamic temp table

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!


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>