Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiflatfile connection - Capture file name

Status
Not open for further replies.

Sweenster

MIS
Sep 9, 2005
58
GB
Hi,

I importing multiple txt files in SSIS using a Multiflatfile connection with wildcard. Everything works fine as the number of files could vary at run time as files are each from a different source systems.

Now what i need to do is each time a file is processed, read the filename so I can populate a source column for splitting back out those rows at a later date

Is is possible to grab the file name somehow when using a wild card?
 
Don't worry I have found the answer..I was able to just use a custom property of the actual flat file source in the data flow!

CustomProperties:
FileNameColumnName

This captures the full path and name of the file being processed so did just the job!

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top