How to apply the below transformation in SSIS data flow task
cast(gift_amount as int)/100
In Derived Column Transformation Editor, I am unable to change the data type. It gives 0xC0049064
error upon giving typecast
function.
You can acieve this using a script component
Script Component
gift_amount
as input columnoutColumn
)Add the following code: (using vb.net)
If Not Row.giftamount_IsNull AndAlso
Not String.IsNullOrEmpty(Row.giftamount) Then
Row.outColumn = CDec(CInt(Row.giftamount) / 100)
Else
Row.outColumn_IsNull = True
End If