Link to home
Start Free TrialLog in
Avatar of hennanra3
hennanra3Flag for United Kingdom of Great Britain and Northern Ireland

asked on

Get Sheetname from Excel Source using SSIS

Hi All,

I have a scenario where I am getting data from an excel source using excel connection manager. From that excel, I want to get the sheet name and load it into database table. Sheet name format is: ABCDEF - 12345678

From that sheet name, I want to get only "12345678" and want to load it into database table, please guide.

Thanks in advance.
Avatar of Pawan Kumar
Pawan Kumar
Flag of India image

Use Script task.

string nm = SheetName.Substring(SheetName.IndexOf(" - ") + " - ".Length);

Hope it helps.
Avatar of hennanra3

ASKER

I will really appreciate if you can please elaborate in detail about your provided solution as I am a newbie in SSIS.

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Pawan Kumar
Pawan Kumar
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial