Publication.StopSnapshotGenerationAgentJob Method

Attempts to stop a running Snapshot Agent job.

Espace de noms: Microsoft.SqlServer.Replication
Assembly: Microsoft.SqlServer.Rmo (in microsoft.sqlserver.rmo.dll)

Syntaxe

'Déclaration
Public Sub StopSnapshotGenerationAgentJob
public void StopSnapshotGenerationAgentJob ()
public:
void StopSnapshotGenerationAgentJob ()
public void StopSnapshotGenerationAgentJob ()
public function StopSnapshotGenerationAgentJob ()

Notes

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.

Sécurité des threads

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Plateformes

Plateformes de développement

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Plateformes cibles

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Voir aussi

Référence

Publication Class
Publication Members
Microsoft.SqlServer.Replication Namespace