SSIS同时插入3个条目

时间:2018-08-22 07:33:29

标签: sql-server ssis

您好,在我的SSIS数据流中,我有3个平面文件需要放在1个表中(ole db)。我需要在同一时间和同一行插入它们。这该怎么做 ?

1个目的地的3个条目,但我需要在同一行中同时插入它们:

enter image description here

1 个答案:

答案 0 :(得分:0)

So you have Col1 in File1, Col2 in File2 and Col3 in File3 and you need to import them all Col1, Col2, Col3 into one table. You are correct, you need to use Merge Join which needs a column to join on. You do need to do some intermediate steps, there's no direct way to do that AFAIK. I can see two options:

  1. Create on-the-fly row_number column for each source and then do merge join. Use this for script component.
  2. Create temporary tables with Auto incrementing Identity column for each of the sources which you can then do merge join with.