2
如何在SSIS数据流任务SSIS - 从DT_STR数据转换成int
cast(gift_amount as int)/100
在派生列转换编辑器应用下面的转型,我无法更改数据类型。在给予typecast
函数时,它给出0xC0049064
错误。
如何在SSIS数据流任务SSIS - 从DT_STR数据转换成int
cast(gift_amount as int)/100
在派生列转换编辑器应用下面的转型,我无法更改数据类型。在给予typecast
函数时,它给出0xC0049064
错误。
可以使用一个script component
Script Component
gift_amount
作为输入列acieve此outColumn
)添加以下代码:(使用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