Publication.StopSnapshotGenerationAgentJob 方法

定义

尝试停止正在运行的 快照代理 作业。

public:
 void StopSnapshotGenerationAgentJob();
public void StopSnapshotGenerationAgentJob();
member this.StopSnapshotGenerationAgentJob : unit -> unit
Public Sub StopSnapshotGenerationAgentJob ()

注解

如果快照作业尚未运行 StopSnapshotGenerationAgentJob ,方法会抛出异常。

StopSnapshotGenerationAgentJob该方法只能由Publisher中固定服务器角色的成员sysadmin或发布数据库中固定数据库角色的成员db_owner调用。

适用于