Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

join within an SQL task VS merge or merge join Expand / Collapse
Author
Message
Posted Friday, February 08, 2013 2:58 AM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Tuesday, April 09, 2013 4:50 AM
Points: 75, Visits: 173
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
Post #1417549
Posted Friday, February 08, 2013 4:15 AM


SSCarpal Tunnel

SSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal Tunnel

Group: General Forum Members
Last Login: 2 days ago @ 5:12 AM
Points: 4,226, Visits: 9,458
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.


____________________________________________________________________________________________

Help us to help you. For better, quicker and more focused answers to your questions, consider following the advice in this link:

http://www.sqlservercentral.com/articles/Best+Practices/61537/

If you are asking for help and your post does not contain a question, you should expect responses which do not contain any answers. Put a question mark in there somewhere - it's not rocket science.
Post #1417587
Posted Friday, February 08, 2013 4:32 AM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Tuesday, April 09, 2013 4:50 AM
Points: 75, Visits: 173
Thanks a lot. This helps. :)
Post #1417593
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse