What database objects are stored in tempdb

Published on by LakshmiSaahul,Dhana Royal

What database objects are stored in tempdb?

Ans:

There are three different types of objects stored in tempdb.

Internal Objects:

  1. Intermediate runs for sort.
  2. Intermediate results for hash join and hash aggregates.
  3. XML variables or other large object (LOB) data type variables. (text, image, ntext, varchar(max), varbinary(max))
  4. Queries that need a spool to store intermediate results.
  5. Keyset cursors to store the keys.
  6. Static cursors to store a query result.
  7. Service Broker to store messages in transit.
  8. INSTEAD OF triggers to store data for internal processing.
  9. DBCC CHECK internally uses a query that may need to spool intermediate results.
  10. Query notification and event notification use Service Broker.

Advertising
To be informed of the latest articles, subscribe:
Comment on this post