Solved

SP to monitor log file growth and send alert

Posted on 2009-07-01
4
585 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Read about achieving the basic levels of HRIS security in the workplace.
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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now