Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2012-12-22
8
Medium Priority
?
14,708 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

If you are a user of the discontinued Microsoft Office Accounting 2008 (MSOA) and have to move to a new computer running Windows 8, you will be unhappy to discover that it won't install.  In particular, Microsoft SQL Server 2005 Express Edition (SSE…
A quick step-by-step overview of installing and configuring Carbonite Server Backup.
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

610 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