Using SSIS, uploading from a text file to SQL Server database table, I need to add the text file name as a column in the results dataset. I am able to create a flat file source,
In your flat file source, right click on it and go to advanced properties. In the Advanced Properties editor, select the Component Properties tab and then under Custom Properties, there is a FileNameColumnName
. Here I used SourceFileName
I attached a data viewer between my flat file source and the next component et voilà!