I'm facing the exact problem and thinking to give it a try on the solution proposed.
I'm wondering how to query the largest size table in TempDB
or is there a query whereby it list all tables in tempdb with the respective size
I'm facing the exact problem and thinking to give it a try on the solution proposed.
I'm wondering how to query the largest size table in TempDB
or is there a query whereby it list all tables in tempdb with the respective size
Tempdb is sufficiently normal that the admin queries work on (temp tables contaiend in) it, despite the fact they don't show up in SSMS. I think that SSMS filters them out.
The temp tables have random names though, so it's kind of hard to determine which query they came from. You can't access them, even with sa (I tried).
So here's half an answer. Anybody who knows the other half can get easy rep.