?
Solved

purge or delete or re-initilaise sbsmonitoring database (sbsmonitoring.mdf, sbsmonitoring.ldf)

Posted on 2012-12-22
8
Medium Priority
?
15,027 Views
Last Modified: 2012-12-31
Hi,
I currently have the SBSMonitoring database using a huge amount of space on Small Business Server 2008 (sbs2008)

sbsmonitoring.mdf    994.2MB
sbsmonitoring.mdf    611.1MB

Is there an easy way to purge, delete or re-initialise this database to get the size down ?

Regards
Michael
0
Comment
Question by:Michael Green
  • 5
  • 3
8 Comments
 
LVL 22

Expert Comment

by:Larry Struckmeyer MVP
ID: 38716386
Hi:

In the SBS console, under Monitoring, run the setup wizard.  This will clear the history so you will not have comparisons in the reports, but it will lower the space consumed.

How big is your system partion?  1.5 GB is not "huge" for this database.
0
 

Author Comment

by:Michael Green
ID: 38716407
Where is 'Monitoring' located on the SBS2008 console ?
0
 
LVL 22

Expert Comment

by:Larry Struckmeyer MVP
ID: 38717037
Sorry, keep getting the versions mixed....

You still are nowhere near any limits on these files.  If your system partition is lacking free space, either the partition is too small or there are other things using the space.

Here are two articles that explain it.  Note, Please read them both to the end.

http://blogs.technet.com/b/sbs/archive/2009/07/14/sbs-2008-console-may-take-too-long-to-display-alerts-and-security-statuses-display-not-available-or-crash.aspx

and

http://www.thirdtier.net/2010/03/sbs-2008-monitoring-database-fills-to-capacity/
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

by:Michael Green
ID: 38717661
The customer's C: drive is quite small - hence the issue.

I read all three articles - have seen this about updateSBSMonitoring.sql  before.

I ran updateSBSMonitoring.sql per the procedure.

It did NOT decrease the database size - it INCREASED IT !.  And the log file size TOO ! (to over a gig).

Is this the result you expected ?
0
 
LVL 22

Expert Comment

by:Larry Struckmeyer MVP
ID: 38718382
Not what I expected and not sure what that is about, but you will be fighting this forever.  Probably better to increase the size of the system partition.

Also, "run as administrator" either wirdirstat or treesizepro to see what else is consuming space on that system.
0
 

Accepted Solution

by:
Michael Green earned 0 total points
ID: 38719284
OK - it looks like it needed a shrink as well.  Database is now 120Mb.

Here is the batch file I developed that worked :


Rem script developed from :
Rem http://blogs.technet.com/b/sbs/archive/2009/07/14/sbs-2008-console-may-take-too-long-to-display-alerts-and-security-statuses-display-not-available-or-crash.aspx

Rem Find and stop the SQL Server (SBSMONITORING) service.

NET STOP MSSQL$SBSMONITORING

MKDIR C:\TEMP
MKDIR C:\Temp\DataBackup

Rem backup all databases and log files in this directory
XCOPY /E /C /H /R /Y "C:\Program Files (x86)\Microsoft SQL Server\MSSQL.1\MSSQL\Data\*.*" C:\TEMP\Databackup

Rem Restart service
NET START MSSQL$SBSMONITORING

Rem Run downloaded SQL to EXECUTE [SBSMonitoring].[dbo].[CleanupDatabase] create indexes and statistics

Sqlcmd -S %computername%\SBSMonitoring -E  -i c:\Batch\updateSBSMonitoring.sql

sqlcmd -S %computername%\SBSMonitoring -E  -i c:\Batch\shrinkSBSMonitoring.sql

PAUSE
1
 

Author Comment

by:Michael Green
ID: 38719285
And yes - Windirstat is very useful.  But that is how I identified this size issue in the first place...:)
0
 

Author Closing Comment

by:Michael Green
ID: 38732220
Solution required combining multiple steps/suggestions
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction At 19:33 (UST) on Tuesday 21st September the long awaited email arrived with the subject title of “ANNOUNCING THE AVAILABILITY OF WINDOWS SBS 7 PREVIEW”.  It was time to drop whatever I was doing and dedicate as much bandwidth as possi…
The articles for turning off the Client firewall policy on the internet are for SBS 2008 and don't really help for SBS 2011. They actually moved the Client firewall policy. In 2011, the client firewall policy has moved to the SBS computers conta…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses
Course of the Month17 days, 8 hours left to enroll

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question