Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Load multiple files with filename in one column

$
0
0

Hi All,

I have to load multiple excel files into one table with same structure, along with loading I also want to check the filename and add the file name to one of the column.

The filename contains the year (eg. FileEmployeeBal2015  and  FileEmploeeBal2016) I want to load full filename in one of the column and year 2015 in other column.

I know how to load multiple files into one table but, need some help in adding the fullfilename and extracting the year part and adding it as a new column ( year part is either 2015 or 2016 this is fixed).

SQL version 2012 & Visual Studio 2010.

Thanks,


Neil


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>