Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Totally out of my depth
Message
From
06/04/2011 09:54:35
 
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Environment versions
SQL Server:
SQL Server 2000
Miscellaneous
Thread ID:
01506238
Message ID:
01506257
Views:
44
>>>This monstrous query is very hard to read and impossible to understand. Can you break it to managable pieces using either CTE or temp tables?
>>
>>Hi Naomi - as I said my TSql is very limited - don't know what CTE is and how would temp tables help ? - thanks
>
>To learn more about CTE check out my blog post
>http://blogs.lessthandot.com/index.php/DataMgmt/DataDesign/cte-and-hierarchical-queries
>
>I recently was trying to fine tune the complex stored procedure as well. Using some advices from Peter Larsson and dividing this problem into smaller pieces and using temp tables for intermediate results helped to reduce the time quite significantly.

I was doing some Mysql recently and the benefit of temporary tables was that you could optimise the temp table indexes as well.
Previous
Reply
Map
View

Click here to load this message in the networking platform