dbuchanan
2009-07-22 21:10:01 UTC
My data source is an excel file. One column named [employee Id] should
contain numeric data, however every month the excel file is received with
about ten out of 50,000 records having the [employee Id] data proceeded with
a specific letter.
Prior to now the data was manually imported into the data table.
I am now writing an SSIS package to import that data and wish to automate
the correction.
What kind of data flow transformation task do I use to correct this data?
I attempted putting a case statement into the expression column of the
Derived Column Transformation Editor, but that was not accepted.
This is what I tried:
case when left([Employee Id],1) = 'N' then right([Employee Id],len([Employee
Id]) - 1)else [Employee Id] end
---------Note-----------------------
I did a search on the word ‘conditional’ with respect to SSIS on MSDN and
found this page:
http://msdn.microsoft.com/en-us/library/ms141680(SQL.90).aspx
Although the page contained some expression syntax and a lot of explanation
there was nothing on that page to give me a clue about where these
expressions were to be entered or what the expressions meant. There was also
no provision for supplying feedback on the page.
----------------------------------------
What is the correct way of solving my problem of removing a leading letter
from the records that contain leading letters?
thank you.
contain numeric data, however every month the excel file is received with
about ten out of 50,000 records having the [employee Id] data proceeded with
a specific letter.
Prior to now the data was manually imported into the data table.
I am now writing an SSIS package to import that data and wish to automate
the correction.
What kind of data flow transformation task do I use to correct this data?
I attempted putting a case statement into the expression column of the
Derived Column Transformation Editor, but that was not accepted.
This is what I tried:
case when left([Employee Id],1) = 'N' then right([Employee Id],len([Employee
Id]) - 1)else [Employee Id] end
---------Note-----------------------
I did a search on the word ‘conditional’ with respect to SSIS on MSDN and
found this page:
http://msdn.microsoft.com/en-us/library/ms141680(SQL.90).aspx
Although the page contained some expression syntax and a lot of explanation
there was nothing on that page to give me a clue about where these
expressions were to be entered or what the expressions meant. There was also
no provision for supplying feedback on the page.
----------------------------------------
What is the correct way of solving my problem of removing a leading letter
from the records that contain leading letters?
thank you.
--
dbuchanan
dbuchanan