SnapshotGenerationAgent Class

Provides the functionality of the Replication Snapshot Agent.

命名空间: Microsoft.SqlServer.Replication
程序集: Microsoft.SqlServer.Replication (in microsoft.sqlserver.replication.dll)
语法

VisualBasicDeclaration

    
CSharp

    
ManagedCPlusPlus

    
JSharp

    
JScript

    
注释

The SnapshotGenerationAgent class provides direct, programmatic access to the Snapshot Agent.

The SnapshotGenerationAgent class supports the ability to do the following replication tasks:

  • Generate the initial snapshot

  • Generate a partitioned snapshot for a subscription defined based-on a parameterized filter.


Inheritance Hierarchy

System.Object
   System.MarshalByRefObject
     Microsoft.SqlServer.Replication.AgentCore
      Microsoft.SqlServer.Replication.SnapshotGenerationAgent
示例

This example generates a standard snapshot for a transactional publication.

This example generates a standard snapshot for a merge publication.

This example overloads the HOST_NAME function to generate a filtered data snapshot for a subscription to a merge publication that has a parameterized filter.

线程安全

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.
平台

开发平台

有关支持的平台的列表,请参阅安装 SQL Server 的硬件和软件要求

Target Platforms

有关支持的平台的列表,请参阅安装 SQL Server 的硬件和软件要求
请参阅

标记 :


Page view tracker