Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Continuation of Message 1593233 on Common Table Expressi
Message
From
05/02/2014 09:00:36
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2005
Application:
Web
Miscellaneous
Thread ID:
01593237
Message ID:
01593277
Views:
39
>I have heard that CTEs offer sometimes phenomenal performance gains. Is that true?

When used in the context of a derived table subquery (arguably the most common use), not really...or at least I'm not aware of any.

When used in the context of recursion - it's possible. There are instances where you can use a CTE in place of a "loop" - in that case, a CTE might be faster.
Previous
Reply
Map
View

Click here to load this message in the networking platform