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

asked on

SSIS Expression for a column after importing an excel file to SQL

Hi I am a newbie to SSIS. I have to export an Excel file to SQL Server table but there is a column which has a certain format which need to be followed. Trying my luck to write its expression for Derived Column but in vain. The format is as follows:

ABCDYYMM0001

0001 portion will be incremented depending upon the number of rows.

Thanks in advance.
ASKER CERTIFIED SOLUTION
Avatar of Vikas Garg
Vikas Garg
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
To capture the current row number you will need to use the script task and while you're there might as well concat the results for your new value instead of derived column.

There are a lot of examples on the web on how to write the script