新建連接之后回到OLE DB Source Editor界面,默認Data Access Mode選項是Table or View,選擇數據庫中的表[Production].[TransactionHistoryArchive],如圖4-32????????????????????????????? 圖4-32
從工具欄Data Flow Transformations中拖放一個Derived Column任務用來產生派生新列,重命名為Calculate Total Cost,用鼠標拖住TransactionHistory 數據源連接這個task
雙擊這個Derived Column打開編輯界面如圖4-34,在表達式列中輸入下面的表達式:[Quantity]* [ActualCost],列名也可以從左邊Columns拖放如圖,在Derived Column Name列中輸入TotalCost,Derived Column列中選擇<add as a new column>,點擊OK退出編輯界面??????????????????????? 圖4-34