In SSIS, add the text file name as a column in the results dataset

后端 未结 1 527
遇见更好的自我
遇见更好的自我 2021-01-24 17:22

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,

1条回答
  •  别那么骄傲
    2021-01-24 17:59

    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à!

    0 讨论(0)
提交回复
热议问题