Solved

Edit log shipping primary alert

Posted on 2013-11-21
2
388 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

626 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