SSIS: Importing from flatfile, how do I custom update a column that's not in flatfile?

StackOverflow https://stackoverflow.com/questions/18964841

  •  29-06-2022
  •  | 
  •  

Flat file has:

A,B
1,2
5,7

DB has:

A,B,C
1,2,null
5,7,null

I'd like to during import update column C with static data "3"

So it looks like:

A,B,C
1,2,3
5,7,3

Thanks in advance!

Hmm looks like this is the best solution: Executing the same SSIS Package with different parameters at different time

有帮助吗?

解决方案

In your Data Flow, you will need to add a Derived Column Component between your Flat File Source and the OLE DB Destination.

In your Derived Column, you will name it as C and possibly use an Expression. Since you say it's static, then it might be as simple as putting the literal value of 3 into the Expression column.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top