how to assign a constant value to a column in oledb destination in ssis

你。 提交于 2019-12-24 05:13:39

问题


i have a OLE DB destination which has a destination columns such as TrackDateTime , OperationTypeID, and TrxID .Here TrxID i will get a value from input column. But my requirements here is to get the values for TrackDateTime , OperationTypeID : Here TrackDateTime must be current date and time and OperationTypeID must be 2 always. How can I achieve this?


回答1:


You can use a derived column transformation to generate fixed values:

TrackDateTime

GETDATE() 

or if you need the package execution date time:

[System::StartTime]

OperationTypeID

2

Helpful links

  • Derived Column Transformation
  • Derived Column Transformation in SSIS


来源:https://stackoverflow.com/questions/55676071/how-to-assign-a-constant-value-to-a-column-in-oledb-destination-in-ssis

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!