Export (0) Print
Expand All

Publication.StopSnapshotGenerationAgentJob Method

Attempts to stop a running Snapshot Agent job.

Namespace:  Microsoft.SqlServer.Replication
Assembly:  Microsoft.SqlServer.Rmo (in Microsoft.SqlServer.Rmo.dll)

public void StopSnapshotGenerationAgentJob()

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.

Community Additions

© 2014 Microsoft