Solved

Edit log shipping primary alert

Posted on 2013-11-21
2
382 Views
Last Modified: 2013-11-21
Sql 2012 Std.
One of our databases was renamed prior to deleting the log shipping setup.  Now the 'Log shipping Primary Server Alert' sends a 14420 alert every few minutes complaining that <olddatabasename> has not performed a backup log operation.  Looking in management studio under 'alerts-logshippingPrimary...' I can edit the job to check all databases, or ONE specific database. I do not want to create a custom alert check  job for each DB.  How do I remove the old dbname from the list of names being checked?
0
Comment
Question by:billherde
  • 2
2 Comments
 
LVL 3

Accepted Solution

by:
billherde earned 0 total points
ID: 39667335
Figured it out.

First back up MSDB

Verify backup of MSDB

then

Attach to the msdb database and run query
Select * from msdb.dbo.log_shipping_monitor_primary

From results get the primary_id of the db with the problem and insert it in the appropriate place on the following query.

begin tran
delete from msdb.dbo.log_shipping_monitor_primary
where primary_id='FC6F41C1-0697-4354-BBDF-615A4AD1BC10'
rollback tran

Run check first to make sure only ONE colum is affected, then execute.
0
 
LVL 3

Author Comment

by:billherde
ID: 39667357
Note
Running query as above will check without making changes.
Remove the begin tran and rollback tran lines to make it happen.

Verify results with select query.
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

I have a large data set and a SSIS package. How can I load this file in multi threading?
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

820 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