I'm trying to import a large number of flatfiles using SSIS, but the thing is I wanted to use foreach, so that it could get the name of the file and use it as the table destination name.
For example:
Flat File name: ExampleOfFile.txt
foreach executes, gets the file's name and stores in variable @FileName
Destination table: [dbo].[ExampleOfFile]
Do you guys have any thoughts on how to do this?
Thanks!