Yep... but the correct answer will not work by itself if there's any activity at all in TempDB (system generated or not and there's a fair number of system generated tables that seem to "stick" even after a system goes to a quiet but normal state) and that contingency makes the correct answer listed only a partially correct answer. Since the question was specifically about TempDB, the contingency should have been a part of the correct answer, IMHO.
Heh... it didn't happen here but instructions on some exams to "pick the best answer" give me the hackles when the "best" answer isn't actually the best answer.
is pronounced ree-bar and is a Modenism for R
First step towards the paradigm shift of writing Set Based code: Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column.
If you think its expensive to hire a professional to do the job, wait until you hire an amateur. -- Red Adair
When you put the right degree of spin on it, the number 318
is also a glyph that describes the nature of a DBAs job. Helpful Links:
How to post code problemsHow to post performance problemsForum FAQs