Does TempDB actually get dropped and recreated , Proof !!

Опубликовано: 25 Июль 2026
на канале: Jayanth Kurup
259
0

One thing that every database administration knows about this system databases is the fact that temp database gets dropped and recreated everytime SQL server restarts. In this video I demonstrate that the files related to temp database is not actually deleted from the underlying hard disk by using command prompt and windows APIs to show you the file creation times for each file. This is an interesting use case as the Microsoft documentation mentions that the database is dropped and recreated when actually the files remain the same and only the objects within the files get dropped and recreated so if you are a windows administrator temp database doesn't actually get recreated and if you're a database administrator they do. This doesn't really make any difference in the long term or even in the job description however it's interesting scenario for how the wording adds some ambiguity to what actually happens.

Need more information?
Visit https://www.enabledbusinesssolutions.com

To know more about Jayanth Kurup visit http://www.jayanthkurup.com

Jayanth is a Microsoft SQL Server trainer / consultant with over 15 years experience. He has worked with companies like Microsoft, IBM, HCL , Wipro , WellFargo , Zeomega and many more. He is based out of Bangalore and a very active member of the SQL Server Community.

In this channel he covers complex topics related MS SQL Server , PowerBI , Azure , AWS , Powershell, SSIS , SSAS , SSRS , Machine Learning , AI , etc

You can also reach Jayanth via his LinkedIn profile below
https://www.linkedin.com/in/jayanth-k...