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
  •  | 
  •  

Domanda

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

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top