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