I have to load file with csv extension from one particular folder to data base in ssis. file name is not known but folder and extension is fixed.
Asked
Active
Viewed 134 times
1 Answers
0
To load the content of a file, the file name with folder path is required else the connection manager can not be validated and configured.
The easiest way is to get file name is using a For Each Loop container:
- Select the option [Foreach File Enumerator]
- Provide the Folder path and extension (like *.csv) you already have.
- Get the File Name in a variable and use it within the Source of the data flow task within the For each Loop container.

p2k
- 2,126
- 4
- 23
- 39