Log Shipping stored procedures
23 reference entries
- sp_delete_log_shipping_alert_job
Removes an alert job from the log shipping monitor server if the job exists.
- sp_help_log_shipping_alert_job
Returns the job ID of the alert job from the log shipping monitor.
- sys.sp_add_log_shipping_alert_job
This stored procedure checks to see if an alert job has been created on this server.
- sys.sp_add_log_shipping_primary_database
Sets up the primary database for a log shipping configuration, including the backup job, local monitor record, and remote monitor record.
- sys.sp_add_log_shipping_primary_secondary
This stored procedure adds an entry for a secondary database on the primary server.
- sys.sp_add_log_shipping_secondary_database
Sets up a secondary database for log shipping.
- sys.sp_add_log_shipping_secondary_primary
Sets up the primary information, adds local and remote monitor links, and creates copy and restore jobs on the secondary server.
- sys.sp_change_log_shipping_primary_database
Changes the primary database settings.
- sys.sp_change_log_shipping_secondary_database
spchangelogshippingsecondarydatabase changes secondary database settings.
- sys.sp_change_log_shipping_secondary_primary
Changes secondary database settings.
- sys.sp_cleanup_log_shipping_history
spcleanuplogshippinghistory cleans up history locally, and on the monitor server, based on retention period.
- sys.sp_delete_log_shipping_primary_database
Removes log shipping of primary database including backup job, and local and remote history.
- sys.sp_delete_log_shipping_primary_secondary
Removes the entry for a secondary database on the primary server.
- sys.sp_delete_log_shipping_secondary_database
Removes a secondary database and removes the local history and remote history.
- sys.sp_delete_log_shipping_secondary_primary
Removes the information about the specified primary server from the secondary server, and removes the copy job and restore job from the secondary.
- sys.sp_help_log_shipping_monitor
Returns a result set containing status and other information for registered primary and secondary databases.
- sys.sp_help_log_shipping_monitor_primary
Returns information regarding a primary database from the monitor tables.
- sys.sp_help_log_shipping_monitor_secondary
Returns information regarding a secondary database from the monitor tables.
- sys.sp_help_log_shipping_primary_database
sphelplogshippingprimarydatabase retrieves primary database settings.
- sys.sp_help_log_shipping_primary_secondary
Returns information regarding all the secondary databases for a given primary database.
- sys.sp_help_log_shipping_secondary_database
sphelplogshippingsecondarydatabase retrieves the settings for one or more secondary databases.
- sys.sp_help_log_shipping_secondary_primary
sphelplogshippingsecondaryprimary retrieves the settings for a given primary database on the secondary server.
- sys.sp_refresh_log_shipping_monitor
sprefreshlogshippingmonitor refreshes the remote monitor tables with the latest information from a given primary or secondary server.