I am using SSIS to fetch data from a .CSV
file and upload it into SQL Server 2012.
I am able to upload the data but now I have a date column in SQL Server and I have timestamp in .csv
file name.
I would like to extract the date only (e.g. 2015-08-17
) from the .csv
file name and then add that to date column in SQL Server after data is imported.
Example file name: TC_001_Feature_20150814_000132
Value need: 20150814
and added it in SQL Server column as 2015-08-14
.