Метод Publication.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.

См. также

Справочник

Publication Класс

Пространство имен Microsoft.SqlServer.Replication