This stored procedure checks to see if an alert job has been created on this server. If an alert job does not exist, this stored procedure creates the alert job and adds its job ID to the log_shipping_monitor_alert table. The alert job is enabled by default and runs on a schedule of once every two minutes.
This example shows the execution of sp_add_log_shipping_alert_job to create an alert job ID.
USE master GO EXEC sp_add_log_shipping_alert_job;