ALTER DATABASE msdb SET SINGLE_USER;

DBCC CHECKDB (msdb,REPAIR_REBUILD) WITH NO_INFOMSGS,ALL_ERRORMSGS;

ALTER DATABASE msdb SET ONLINE;

ALTER DATABASE msdb SET MULTI_USER;

 

 

Working on more detailed document. Coming Soon.