-When we know the no of files present in the Source Folder then we use Forloop Container.
If you want to dynamically loop through something you are supposed to add a variale for the file path.
-When we dont know the now of files in the Source Folder we use ForEachLoop Container.
For Loop Container
Use the Below code in the Execute SQL Task.
Get the data from all the flat files(.TXT) and load all the data in the SQL server.
The Columns in the Flat files are same, only the Data Differs.
For Each Loop :
If you want to dynamically loop through something you are supposed to add a variale for the file path.