|
Model database is template for newly created databases, i read tempdb also created using the template of model database, if its true why the tempdb recovery model will be simple even the model database recovery model is full..? Also if we add multiple datafiles to tempdb they will exists even after restart..?
(comments are locked)
|
|
The tempDB seems to be a special case. Objects within the Model database are created in TempDB when the server restarts; however, the size / recovery model are not taken over. Multiple datafiles in TempDB will persist after restart, but they'll be set back to their original size, as reported in And just imagine what would happen to tempdb if it wasn't on the simple recovery model!
Mar 22 '11 at 12:56 AM
David Wimbush
I was just thinking about that on my way into work... yuck.
Mar 22 '11 at 01:07 AM
ThomasRushton ♦
I dare:
Mar 22 '11 at 02:02 AM
WilliamD
@WilliamD - that's trying to set the recovery mode to its current value... coward! ;-) also, option "OFFLINE" and "READONLY" can't be set for that database. (Just reading Ch3 in Delaney...)
Mar 22 '11 at 02:11 AM
ThomasRushton ♦
Sorry @Thomas, changed my comment to FULL now, it still proves the point though. This was a sandbox, so no cowardice on my part. :) Seems that MS has been careful here to make sure (this is a SQL 2K8 box, so YMMV):
Mar 22 '11 at 02:29 AM
WilliamD
(comments are locked)
|
|
as tempdb is a globally shared database , which is used by all the user defined databases and server objects.it is created only when server is restarted.we can shrink the database , we cant have the backup of database.for better performace assign tempdb to other drive.
(comments are locked)
|

