Inserts operations (rows) into the sysdownloadlist system table for target servers to download and execute.
sp_post_msx_operation [@operation =] 'operation'
[,[@object_type =] 'object']
{, [@job_id =] job_id }
[,[@specific_target_server =] 'target_server']
[,[@value =] value]
Object type | Operation |
---|---|
JOB | INSERT UPDATE DELETE START STOP |
SERVER | RE-ENLIST DEFECT SYNC-TIME SET-POLL |
0 (success) or 1 (failure)
None
sp_post_msx_operation must be run from the msdb database.
sp_post_msx_operation can always be called safely because it first determines if the current server is a multiserver SQL Server Agent and, if so, whether object is a multiserver job.
After an operation has been posted, it appears in the sysdownloadlist table. After a job has been created and posted, subsequent changes to that job must also be communicated to the target servers (TSX). This is also accomplished using the download list.
It is highly recommended that the download list be managed by using the SQL Server Enterprise Manager. For more information, see Modifying and Viewing Jobs.
Anyone can execute this procedure, but the procedure will only have an effect if it is executed by a member of the sysadmin fixed server role.
sp_add_jobserver | sp_start_job |
sp_delete_job | sp_stop_job |
sp_delete_jobserver | sp_update_job |
sp_delete_targetserver | sp_update_operator |
sp_resync_targetserver | System Stored Procedures |