I have a question regarding how to monitor a mirrored pair using SQL Server 2005 Alerts. Specifically, the question is on how to send an email to an operator via database mail to notify the operator of an error.
The error Event ID is 32042, which occurs when the age of the unsent log exceeds the threshold. I want to send a notification whenever the threshold limit I have set up in the Mirroring Monitor are exceeded.
I execute the following statement to ensure my message is logged:
sp_alterMessage 32042, 'WITH_LOG', TRUE
This is supposed to tell SQL that I want the system level alert to be logged so that SQL Agent can pick it up and send.
The problem is that Microsoft has changed how sp_alterMessage works. Now in SQL Server 2005, it cannot change messages in sys.messages that have an ID less then 50,000. You get this message if you try:
'Cannot drop or alter a message with an ID less than 50,000.'
So my question is: what have you done to get around this?
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!