© Benjamin Nevarez 2016

Benjamin Nevarez, High Performance SQL Server, 10.1007/978-1-4842-2271-3_5

5. tempdb Troubleshooting and Configuration

Benjamin Nevarez

(1)Santa Clarita, California, USA

tempdb is a system database used for holding temporary objects that can be user created or system created. Unlike other databases, tempdb is recreated every time SQL Server starts. The various uses of tempdb can be generally categorized into three groups: user, internal, and version store objects.

  1. User objects: Used for objects created directly by users like global and local temporary tables, table variables, or temporary stored procedures.

  2. Internal objects: Used for internal objects including worktables to store temporary data for sorting, hash tables, ...

Get High Performance SQL Server: The Go Faster Book now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.