I'm new to SSIS, how can I get the Excel FileName that I'm trying to upload and assign it to a variable for later usage? I've tried to do some research but I didn't get anything helpful.
Asked
Active
Viewed 1,188 times
1 Answers
0
Try using a Foreach Loop container:
- Set the enumerator to Foreach File enumerator
- Point it towards the folder where your excel file is located
- tell it to look for
.xls
or.xlsx
files - On Variable Mappings, create a variable called
FileName
Obviously if you have more than one file in there, it will only give you the last file name.

Greenonline
- 1,330
- 8
- 23
- 31

T Doggy Dog
- 31
- 1
- 6