开发者

How to pass an extra column to table in SSIS?

开发者 https://www.devze.com 2023-02-21 15:01 出处:网络
I have a flatfile...and have a SQLSErver table. I need to copy the data from flatfile to table. The flat file has 10 columns...I am able to copy all 10 columns.

I have a flatfile...and have a SQLSErver table. I need to copy the data from flatfile to table. The flat file has 10 columns...I am able to copy all 10 columns.

But I have one more column in table..."Extract Date". In this column I have to insert GetDate() value.

How can I do this ?

NOTE : I have 3 dataflow tasks :- 1)FlatFile Connection, 2)Der开发者_开发百科ived column edtor (to trim values..and pass null if it's empty). 3)OLEDB Destination.


Either give the ExtractDate column a default of getdate() on the table itself, or, in SSIS, add a new column to the Derived Column Task with GETDATE() as the expression, and pass this to the OleDb destination.

0

精彩评论

暂无评论...
验证码 换一张
取 消