Skip to Content
Inside Microsoft® SQL Server™ 2005
book

Inside Microsoft® SQL Server™ 2005

by Itzik Ben-Gan, Lubor Kollar, Dejan Sarka
May 2006
Intermediate to advanced
536 pages
15h 13m
English
Microsoft Press
Content preview from Inside Microsoft® SQL Server™ 2005

Temporary Tables

SQL Server supports two types of temporary tables: local and global. For the most part, I’ll focus on local temporary tables because this is the type you would typically consider in the same situations as table variables and table expressions. I’ll also describe global temporary tables, but these typically have completely different uses than local temporary tables.

Local Temporary Tables

I’ll start with some fundamentals of local temporary tables before showing examples, and I’ll do the same whenever discussing a new temporary object type. When referring to temporary tables in this section, assume that the discussion pertains to local ones.

You create and manipulate a temporary table just as you would a permanent one, for the most ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microsoft® SQL Server® 2008 For Dummies®

Microsoft® SQL Server® 2008 For Dummies®

Mike Chapple
Microsoft® SQL Server® 2008 Bible

Microsoft® SQL Server® 2008 Bible

Paul Nielsen, Mike White, Uttam Parui
A Developer’s Guide to SQL Server 2005

A Developer’s Guide to SQL Server 2005

Bob Beauchemin, Dan Sullivan
Microsoft® SQL Server® 2008 Internals

Microsoft® SQL Server® 2008 Internals

Paul Randal Kalen Delaney Kimberly Tripp, and Conor Cunningham

Publisher Resources

ISBN: 0735621977Supplemental ContentErrata