Solved

SP to monitor log file growth and send alert

Posted on 2009-07-01
4
615 Views
Last Modified: 2012-05-07
We are running a database on SQL Server 2000 and I would like to monitor the growth of the log file as it recently maxed and crashed the live system.

For instance if I allocate 10GB of space to the log file i would like a stored procedure to alert me if it reaches a certain threshold; e.g 80%.

Can someone assist me with this?

Thanks
0
Comment
Question by:SigmundFraud
  • 2
4 Comments
 
LVL 60

Expert Comment

by:chapmandew
ID: 24753822
Instead, why don't you just setup log backups as part of your maintenance routine?  If you did, you'd likely not have to worry about your log getting too large...
0
 

Author Comment

by:SigmundFraud
ID: 24753845
Indeed you are right but i would like multiple safeguards as recently the backups failed and the notifications were not sent out.
0
 
LVL 60

Accepted Solution

by:
chapmandew earned 500 total points
ID: 24753882
Here's an article I wrote awhile back that should do it for you:

http://blogs.techrepublic.com.com/datacenter/?p=296
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

837 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