MsSQL - Restore Master/Model/MSDB

Steps to Restore the master Database:

image.png

For a named instance, replace . with .\<InstanceName>

  • Restore the master Database:
    • In the sqlcmd prompt, execute the following RESTORE DATABASE command, replacing <path_to_backup_file> with the actual path to your master database backup file:
RESTORE DATABASE master FROM DISK = '\\192.168.1.61\Backups\UNIBCESRV02\master\FULL\UNIBCESRV02_master_FULL_20250910_010011.bak' WITH REPLACE, RECOVERY;
RESTORE DATABASE model FROM DISK = '\\192.168.1.61\Backups\UNIBCESRV02\model\FULL\UNIBCESRV02_model_FULL_20250910_010013.bak' WITH REPLACE, RECOVERY;
RESTORE DATABASE msdb FROM DISK = '\\192.168.1.61\Backups\UNIBCESRV02\msdb\FULL\UNIBCESRV02_msdb_FULL_20250910_010014.bak' WITH REPLACE, RECOVERY;

Check integrity

DBCC CHECKDB ('master') WITH ALL_ERRORMSGS, EXTENDED_LOGICAL_CHECKS;


Revision #1
Created 10 September 2025 20:47:24 by Steve Ling
Updated 11 September 2025 01:31:59 by Steve Ling