BUG: All Changes May Not be Rolled Back when Log Shipping Maintenance Wizard Fails

This article was previously published under Q298743
This article has been archived. It is offered "as is" and will no longer be updated.
BUG #: 353349 (SHILOH_BUGS)
BUG #: 353719 (SHILOH_BUGS)
When you set up log shipping through the Database Maintenance Wizard, and the wizard fails to complete because of an error, not all of the wizard's changes are rolled back.

This may cause the following error message to occur after you fix the original problem, and then re-run the wizard:
Error 14261: The specified primary_server_name.primary_database_name ('N') already exists.
Error 14426: A log shipping monitor is already defined (...)
There are left over jobs on the log shipping monitor server and on the primary server:
  • Primary server: An entry for the monitor server in table msdb.dbo.log_shipping_monitor.
  • Monitor server: Job "Log shipping Alert Job - Backup".
  • Monitor server: Job "Log shipping Alert Job - Restore".
  • Monitor server: An entry for the primary server in table msdb.dbo.log_shipping_primaries.
The jobs are there because there are rows in the log_shipping_primaries table. In all failure cases of the setup Wizard the problem is that the log_shipping_primaries and log_shipping_monitor tables are not always cleaned up.
After you run the Maintenance Wizard and it fails to create the Log Shipping setup, you must manually clean up the tables before you run the wizard again.
Depending on where the failure is, you must run some of the stored procedures to delete the entry.

You may have to run the following stored procedures to clean up log shipping entries and allow the wizard to be re-run:
Microsoft has confirmed this to be a problem in SQL Server 2000.
For more information, visit the following Microsoft Web sites:

Microsoft SQL Server 2000 Resource Kit; Chapter 13

SQL Server 2000 Books Online

Article ID: 298743 - Last Review: 12/06/2015 02:42:13 - Revision: 3.0

Microsoft SQL Server 2000 Enterprise Edition

  • kbnosurvey kbarchive kbbug kbfaq kbpending kbsqlservlogship KB298743