ITPub博客

首页 > Linux操作系统 > Linux操作系统 > ssis multiple table to one file

ssis multiple table to one file

原创 Linux操作系统 作者:keeking 时间:2012-06-12 18:45:39 0 删除 编辑
First, if the metadata is different. It does not work with union all .

So,

Why not just have 3 dataflow tasks one for each table with precedence constraints to have them execute in the correct order.  Each destination would use its own connection manager but they would all point to the same flat file.  The only thing you would need to do is in the flat file destination property grid (or advanced editor) make sure you set the overwrite flag to false for the second and third dataflows so that the file will be appended to.  I tested this and it worked fine for me.

Dataflow 1:
OLEDB Src (header table) --> FlatFile Dest (using flat file conn mgr 1 (filename = combined.csv), overwrite set to true)

Dataflow 2:
OLEDB Src (details table) --> FlatFile Dest (using flat file conn mgr 2 (filename = combined.csv), overwrite set to false)

Dataflow 3:
OLEDB Src (trailer table) --> FlatFile Dest (using flat file conn mgr 3 (filename = combined.csv), overwrite set to false)

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/7899089/viewspace-732601/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2009-07-23

  • 博文量
    194
  • 访问量
    287353