Provides the functionality of the Replication Snapshot Agent.
命名空间: Microsoft.SqlServer.Replication
程序集: Microsoft.SqlServer.Replication (in microsoft.sqlserver.replication.dll)
The SnapshotGenerationAgent class provides direct, programmatic access to the Snapshot Agent.
The SnapshotGenerationAgent class supports the ability to do the following replication tasks:
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