why we need to use sort transformation before merg

2019-06-08 13:54发布

Can any one please tell me why we are sorting all the records before using merge component or merge join component? What is the Exact reason behind it?

1条回答
The star\"
2楼-- · 2019-06-08 14:18

A merge requires sorted inputs because of how it works internally - a single pass through both inputs at the same time is sufficient to produce a merged sorted output. See the MSDN documentation for the SSIS Merge Transformation and Merge Join Transformation for a little more info.

If you don't want or need sorted output you could look at the Union All Transformation that just combines it's inputs into one output without any sorting.

Regards,

Rhys

查看更多
登录 后发表回答