Solved

SP to monitor log file growth and send alert

Posted on 2009-07-01
4
610 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
As technology users and professionals, we’re always learning. Our universal interest in advancing our knowledge of the trade is unmatched by most industries. It’s a curiosity that makes sense, given the climate of change. Within that, there lies a…
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…

777 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