How to recreate msdb for SBSMONITORING

After a recent recovery of a Windows 2008 SBS server from a failed hard disc, the SBSMONITORING msdb no longer exists as I suspect it was missed from all the backups.
How can this be recreated please?
Regards
ClintonKAsked:
Who is Participating?
 
ClintonKConnect With a Mentor Author Commented:
I think I've fixed it.
I installed a new SQL instance called "Junk" and then copied the msdb files over to the SQL data directory for SBSMonitoring and then restarted SBSMonitoring. I then ran the script detailed in the article http://blogs.technet.com/b/sbs/archive/2011/08/22/how-to-recreate-the-sbsmonitoring-database.aspx which has recreated the SBSMonitoring database. It all looks a lot happier now. I will see over the next few hours or so if the database is populated.
0
 
Jeffrey Kane - TechSoEasyPrincipal ConsultantCommented:
Just follow the steps in the SBS 2008 Repair Guide:
http://technet.microsoft.com/en-us/library/dd560614(v=ws.10)

Jeff
TechSoEasy
0
 
ClintonKAuthor Commented:
Using SQL Server Management Studio and looking at the instance of SBSMONITORING it appears to have lost connection to the physical files for the system databases. The SBSMonitoring database is visible and accessible. The physical files do exist as I can see them using Windows Explorer.
I've tried running the SQL 2005 install again as detailed in this article http://technet.microsoft.com/en-us/library/dd560614(v=ws.10) but that fails because it's  already installed.
I suppose it's a repair I'm looking for.
0
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

 
Jeffrey Kane - TechSoEasyPrincipal ConsultantCommented:
There's really no need to repair the existing monitoring database... just recreate it (you would have to delete the old one first though).  If you note at the bottom of that article I suggested above there is a link to this article:
http://blogs.technet.com/b/sbs/archive/2011/08/22/how-to-recreate-the-sbsmonitoring-database.aspx

Jeff
TechSoEasy
0
 
ClintonKAuthor Commented:
Yes, I tried that but it didn't rebuild or reconnect the system databases - probably just SBSMonitoring.
0
 
Jeffrey Kane - TechSoEasyPrincipal ConsultantCommented:
I'm not understanding what you mean by that last comment.

Jeff
TechSoEasy
0
 
ClintonKAuthor Commented:
Sorry, not very clear.
When I connect to SBSMonitoring using Server Management Studio and then look at msdb under System Databases I would expect to be able to expand it to show tables, views etc. All I get in the SBSMonitoring instance is just msdb with no "+" sign next to it to expand.
msdbLooking again I discover that the msdbdata.mdf and msdblog.ldf files aren't in the filesystem as I thought they were so I think it's these I need to recreate.
0
 
ClintonKAuthor Commented:
The key to fixing this problem was to restore the msdb mdf and ldf files from a new SQL instance. I had already run the recreate from http://blogs.technet.com/b/sbs/archive/2011/08/22/how-to-recreate-the-sbsmonitoring-database.aspx
Many thanks for the input
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.