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

Extracting only datepart from different length excel sheet names

$
0
0

I have excel sheets who's names are like this

ExcelSheet20Oct2012.xlsx 

ExcelSheetProducts20Oct2012.xlsx 

ExcelSheetSubCategories20Oct2012.xlsx 

I'm looping this excel sheets into a table, so I have the name of this excelsheet stored in variable "ForEachExcelName". Now my requirement is I want to load the Datepart of the excelsheets (i.e.20Oct2012) into a Column of the destination table.

I'm using derived column to do this task, I want to know how to write a expression to take only date part from excel sheet names.


Royal Thomas


Viewing all articles
Browse latest Browse all 24688

Trending Articles