Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Log Shipping Alerting Expand / Collapse
Author
Message
Posted Sunday, November 4, 2012 6:58 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Sunday, December 2, 2012 12:23 PM
Points: 1, Visits: 96
Hello -

I have a basic SQL Server 2008 log shipping setup with a Primary Server alert and a Secondary Server alert to send emails to a distribution group. On the Secondary server any time an alert is fired it sends out an email for the event as well as one for every single event/alert going back to when the server was first built (thousands of messages). Is there a queue, log, or table that I can clear these old entries from? Is it as simple as clearing the application log on the server itself?

Any guidance is appreciated!
Post #1380788
Posted Monday, November 5, 2012 8:16 AM


SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Monday, September 15, 2014 12:20 PM
Points: 219, Visits: 338
Hi,

As per my understanding any mail is queued and processed through msdb -System database.

You can clear the entries in the msdb, see below tables.

SELECT * FROM sysmail_mailitems
SELECT * FROM sysmail_log

And you can delete the entries from above tables from msdb database.
Post #1381102
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse