Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Replication (2008)
 How to delete old log shipping jobs
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Yak Posting Veteran

52 Posts

Posted - 10/29/2012 :  17:14:41  Show Profile  Reply with Quote
I have deleted the database, removed log shipping of the database and its respective job but the job still runs, the secondary server LSAlert_devwinsql4 job error
Executed as user: NT AUTHORITY\NETWORK SERVICE. The log shipping secondary database DEVWINSQL4.RE7 has restore threshold of 45 minutes and is out of sync. No restore was performed for 5850 minutes. Restored latency is 0 minutes. Check agent log and logshipping monitor information. [SQLSTATE 42000] (Error 14421). The step failed.

Why do I see the error message, if there is no job and database does not exist. I have also executed the following statements:
delete from msdb.dbo.log_shipping_primary_databases

delete from msdb.dbo.log_shipping_primary_secondaries

delete from msdb.dbo.log_shipping_monitor_primary

delete from msdb.dbo.log_shipping_monitor_history_detail

delete from msdb.dbo.log_shipping_monitor_error_detail

delete from msdb.dbo.log_shipping_monitor_alert

Posting Yak Master

212 Posts

Posted - 10/29/2012 :  23:54:00  Show Profile  Visit prett's Homepage  Reply with Quote
Duplicate Question:
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000