What database objects are stored in tempdb
What database objects are stored in tempdb?
Ans:
There are three different types of objects stored in tempdb.
Internal Objects:
- Intermediate runs for sort.
- Intermediate results for hash join and hash aggregates.
- XML variables or other large object (LOB) data type variables. (text, image, ntext, varchar(max), varbinary(max))
- Queries that need a spool to store intermediate results.
- Keyset cursors to store the keys.
- Static cursors to store a query result.
- Service Broker to store messages in transit.
- INSTEAD OF triggers to store data for internal processing.
- DBCC CHECK internally uses a query that may need to spool intermediate results.
- Query notification and event notification use Service Broker.
Advertising