System database restore
System databases are databases created during SQL Server installation and have special meanings. That's why a special section is dedicated to restoring them.
The most simple situation is when restoring the tempdb database. The tempdb database is never backed up, so no restore operation is possible. When some damage appears, we just need to restart the SQL Server service. SQL Server recreates the tempdb database at startup.
Restoring the msdb database is quite simple as well. It often has a (recommended) simple recovery model, so in case of failure, we restore msdb in a similar way to every user database, using the RESTORE DATABASE .. WITH RECOVERY statement.
Restoring a database model is a little more complicated. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access