Click to Rate and Give Feedback
MSDN
MSDN Library
SQL Server
SQL Server 2008
Database Engine
Technical Reference
 sp_add_log_shipping_alert_job (Tran...

  Switch on low bandwidth view
Community Content
In this section
Statistics Annotations (0)
Other versions are also available for the following:
SQL Server 2008 Books Online (June 2009)
sp_add_log_shipping_alert_job (Transact-SQL)

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.

Topic link icon Transact-SQL Syntax Conventions

sp_add_log_shipping_alert_job
[, [ @alert_job_id = ] alert_job_id OUTPUT ]
[ @alert_job_id = ] alert_job_id OUTPUT

The Microsoft SQL Server Agent job ID of the log shipping alert job.

0 (success) or 1 (failure)

None

sp_add_log_shipping_alert_job must be run from the master database on the monitor server.

Only members of the sysadmin fixed server role can run this procedure.

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;
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker