2017-04-01 93 views

回答

2

可以使用一個script component

  1. 添加Script Component
  2. 馬克gift_amount作爲輸入列acieve此
  3. 添加類型十進制或浮動的輸出柱(購outColumn
  4. 添加以下代碼:(使用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 
    
2

你應該嘗試

((DT_I4)gift_amount)/100 

此外,在派生列編輯器窗口中,你可以添加類型轉換的其他類型 - 看看通過一些在的右上角部分的選項編輯。

ssis dco editor