Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Edit log shipping primary alert

Posted on 2013-11-21
2
Medium Priority
?
396 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

885 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