다음을 통해 공유


StopSnapshotGenerationAgentJob 메서드

Attempts to stop a running Snapshot Agent job.

네임스페이스:  Microsoft.SqlServer.Replication
어셈블리:  Microsoft.SqlServer.Rmo(Microsoft.SqlServer.Rmo.dll)

구문

‘선언
Public Sub StopSnapshotGenerationAgentJob
‘사용 방법
Dim instance As Publication

instance.StopSnapshotGenerationAgentJob()
public void StopSnapshotGenerationAgentJob()
public:
void StopSnapshotGenerationAgentJob()
member StopSnapshotGenerationAgentJob : unit -> unit 
public function 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.