Publication.StopSnapshotGenerationAgentJob Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Attempts to stop a running Snapshot Agent job.
public:
void StopSnapshotGenerationAgentJob();
public void StopSnapshotGenerationAgentJob ();
member this.StopSnapshotGenerationAgentJob : unit -> unit
Public Sub StopSnapshotGenerationAgentJob ()
Remarks
If the snapshot job is not already running, the StopSnapshotGenerationAgentJob method throws an exception.
The StopSnapshotGenerationAgentJob method can only be called by members of the sysadmin
fixed server role at the Publisher or by members of the db_owner
fixed database role on the publication database.