I have a temp database, a/k/a side database, that I use for temp tables.
I was toying with the idea of deleting and re-creating the temp database periodically.
To do this I figured I'd use the created date of the Temp database and if it were older than a certain period of time delete and re-create it.
On my home computer, win 11 home & office 365, when I would delete and re-create the temp db it would retain the old created date from the deleted file.
It is clearly a new file but bears the old date. I've tried numerous different things like refreshing tableDefs, etc. but nothing changes this behavior.
On my office computer, win 10 pro & office 365, when I re-create the temp db it does have a new created date as expected.
I've attached a db to demonstrate how I process the temp db. This includes a procedure to reset the created date to an earlier time.
Any thoughts or ideas on why this occurs?