March 17, 2008 11:00 AM
Posted by: Denny Cherry
Back To Basics,
Common Table Expressions,
CTE,
SQL,
SQL Server 2005,
SQL Server 2008,
T/SQLCTEs (Common Table Expressions) are one of the very cool features introduced in SQL Server 2005. In there simplest most common form, think of them as a temporary single use view who's context is only within the command which follows them directly. The syntax of a CTE is very...
December 10, 2007 8:00 AM
Posted by: Denny Cherry
CTE,
SQL,
T/SQL,
Table Variables,
Temp TablesThere are some major differences between temp tables, table variables and common table expressions (CTEs). Some of the big differences are:
Temp Tables vs. Table Variables
- SQL Server does not place locks on table variables when the table variables are used.
- Temp tables...