join within an SQL task VS merge or merge join

  • Hi,

    In our SSIS package we have a lot of stored procedures which get called via a SQL task. These SP's sometimes have a union all or joins between lots of tables before inserting into a final table.

    If I change the entire flow into merge,merge join and other tasks, will it improve my performance in any way? Or would SQL tasks be better and faster?

    Thanks,

    Namrata

  • namrata.dhanawade-1143388 (2/8/2013)


    Hi,

    In our SSIS package we have a lot of stored procedures which get called via a SQL task. These SP's sometimes have a union all or joins between lots of tables before inserting into a final table.

    If I change the entire flow into merge,merge join and other tasks, will it improve my performance in any way? Or would SQL tasks be better and faster?

    Thanks,

    Namrata

    SQL Server is better at set-based operations like JOIN, ORDER BY and any form of aggregation 99% of the time - it's what it was designed to do. The final INSERT, however, may be faster in SSIS, which is optimised for large, fast inserts.

    If you haven't even tried to resolve your issue, please don't expect the hard-working volunteers here to waste their time providing links to answers which you could easily have found yourself.

  • Thanks a lot. This helps. 🙂

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply