Solved

Edit log shipping primary alert

Posted on 2013-11-21
2
381 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

I wrote this interesting script that really help me find jobs or procedures when working in a huge environment. I could I have written it as a Procedure but then I would have to have it on each machine or have a link to a server-related search that …
Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

803 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