SSIS同时插入3个条目 [英] SSIS insert at the same time 3 entries

查看:29
本文介绍了SSIS同时插入3个条目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

Hello so in my SSIS data flow and I have 3 flat files which need to be put in 1 table (ole db). I need to insert them at the same time and on the same row. How to do this ?

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

3 entries for 1 destination but I need to insert them at the same time on the same row:

推荐答案

所以你在 File1 中有 Col1,在 File2 中有 Col2,在 File3 中有 Col3,你需要将它们全部导入到一个表中.你是对的,你需要使用 Merge Join,它需要一个列来加入.您确实需要执行一些中间步骤,AFAIK 没有直接的方法.我可以看到两个选项:

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. 为每个源创建动态 row_number 列,然后执行合并加入.使用 this 用于脚本组件.
  2. 创建带有自动递增标识列的临时表然后您可以合并连接的每个来源.

这篇关于SSIS同时插入3个条目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆