you might have used select X,Y,Z,* into #Foo from ....., and Once you have created the temporary table , you can then run this script to pull that table back out if you need to reuse it
Tempdb size resets after a SQL Server service restart
Have you ever checked the size of the SQL Server tempdb after restarting SQL Server to find that it's reset? Simon Liew explains this behaviour.
2017-05-31
3,326 reads