Microsoft.SqlServer.Replication Namespace
The Microsoft.SqlServer.Replication namespace implements the Replication Management Object (RMO) model. RMO provides programmatic access to Microsoft SQL Server replication from a managed code environment.
Classes
| Class | Description | |
|---|---|---|
| .gif) | AgentJobHistoryInfo | Returns information about the results of the last run of a replication agent. | 
| .gif) | AgentProfile | Encapsulates all operations on replication agent profiles, such as creating, deleting, adding, and removing parameters, and assigning specific profiles to certain agents. | 
| .gif) | AgentProfileParameter | Represents parameters in a replication agent profile. | 
| .gif) | AgentProfileParameterInfo | Represents a supported parameter used in replication agent profiles. | 
| .gif) | Article | The base class from which the TransArticle class and MergeArticle class are derived. | 
| .gif) | ArticleConflict | Represents information about a merge replication conflict table. | 
| .gif) | BusinessLogicHandler | Represents the server registration for the managed code assembly that implements a business logic handler. | 
| .gif) | ConnectionSecurityContext | Represents information you use when you connect to Microsoft SQL Server. | 
| .gif) | CustomResolver | Represents a COM-based resolver registration at a server in a merge replication topology. | 
| .gif) | DistributionArticle | Represents information about an article published in a transactional or snapshot publication stored at the Distributor. | 
| .gif) | DistributionArticleCollection | Represents a collection of DistributionArticle objects. | 
| .gif) | DistributionDatabase | Represents a distribution database at the Distributor. | 
| .gif) | DistributionDatabaseCollection | Represents a collection of DistributionDatabase objects. | 
| .gif) | DistributionPublication | Represents information about a transactional or snapshot publication stored at the Distributor. | 
| .gif) | DistributionPublicationCollection | Represents a collection of DistributionPublication objects. | 
| .gif) | DistributionPublisher | Represents information about a Publisher registered at the currently connected Distributor. | 
| .gif) | DistributionPublisherCollection | Represents a collection of DistributionPublisher objects. | 
| .gif) | DistributionSubscription | Represents information stored at the Distributor about a subscription to a transactional or snapshot publication. | 
| .gif) | DistributionSubscriptionCollection | Represents a collection of DistributionSubscription objects. | 
| .gif) | HeterogeneousColumn | Represents a column contained in a table on a non-Microsoft SQL Server Publisher. | 
| .gif) | HeterogeneousTable | Represents a table on a non-Microsoft SQL Server Publisher. | 
| .gif) | IdentityRangeInfo | Structure that represents identity range management settings for a published article when the source table contains identity columns. | 
| .gif) | LastValidationDateTime | Used to return the date and time of the last merge subscription validation. | 
| .gif) | LightPublication | Infrastructure. | 
| .gif) | MergeArticle | Represents an article in a merge publication. | 
| .gif) | MergeArticleCollection | Represents a collection of MergeArticle objects. | 
| .gif) | MergeConflictCount | Represents conflict information for a table article in a merge publication. | 
| .gif) | MergeDynamicSnapshotJob | Contains information about the Snapshot Agent job that generates the data snapshot for a subscription to a merge publication with a parameterized row filter. | 
| .gif) | MergeJoinFilter | Represents a join filter or logical record relationship between to merge articles. | 
| .gif) | MergePartition | Represents information about a Subscriber's partition for a merge publication with a parameterized row filter. | 
| .gif) | MergePublication | Represents a merge publication. | 
| .gif) | MergePublicationCollection | Represents a collection of MergePublication objects. | 
| .gif) | MergePullSubscription | Represents a pull subscription to a merge publication. | 
| .gif) | MergePullSubscriptionCollection | Represents a collection of MergePullSubscription objects. | 
| .gif) | MergeSessionDetail | Represents detailed information about a step in a Merge Agent session. | 
| .gif) | MergeSessionError | Represents information on errors that occur during a Merge Agent session. | 
| .gif) | MergeSessionSummary | Represents Merge Agent session information. | 
| .gif) | MergeSubscriberMonitor | Enables Subscriber-side monitoring of subscriptions to merge publications. | 
| .gif) | MergeSubscription | Represents a subscription to a merge publication registered at the Publisher. | 
| .gif) | MergeSubscriptionCollection | Represents a collection of MergeSubscription objects. | 
| .gif) | MonitorThreshold | Represents a threshold metric used when monitoring a publication. | 
| .gif) | PendingCommandInfo | Represents information on the number of pending commands for a subscription to a transactional publication and a rough estimate of how much time it takes to process them. | 
| .gif) | Publication | The Publication class is a base class from which the TransPublication class and the MergePublication class are derived. | 
| .gif) | PublicationAccess | Represents login information in the publication access list (PAL) for a publication. | 
| .gif) | PublicationArticle | Represents article information for a published database object. | 
| .gif) | PublicationMonitor | Monitors a publication. | 
| .gif) | PublicationMonitorCollection | A collection of PublicationMonitor objects that represents publications at the Distributor. | 
| .gif) | PublisherConnectionSecurityContext | Represents the login used when connecting to the instance of Microsoft SQL Server that is configured as a Publisher in a replication topology. | 
| .gif) | PublisherMonitor | Monitors a replication Publisher. | 
| .gif) | PublisherMonitorCollection | Represents a collection of PublisherMonitor objects. | 
| .gif) | PullSubscription | Represents information at the Publisher for a subscription to a merge or a transactional publication when the Synchronization Agent runs at the Subscriber. PullSubscription is a base class from which the TransPullSubscription class and the MergePullSubscription class are derived. | 
| .gif) | RegisteredSubscriber | Represents a Subscriber that has been registered at a Publisher or a Distributor. | 
| .gif) | RegisteredSubscriberCollection | Represents a collection of RegisteredSubscriber objects. | 
| .gif) | ReplicationAgentSchedule | Represents the schedule for a replication agent job. | 
| .gif) | ReplicationBaseCollection | The base class that is used in the construction of replication object collections. It contains functionality that is common to the replication object collections. | 
| .gif) | ReplicationColumn | Represents a column object in a table that contains information needed by replication. | 
| .gif) | ReplicationDatabase | Represents a publication or subscription database in a replication topology. | 
| .gif) | ReplicationDatabaseCollection | Represents a collection of ReplicationDatabase objects. | 
| .gif) | ReplicationMonitor | Monitors a replication server. | 
| .gif) | ReplicationObject | Abstract class that is the base class for all classes in the Replication Management Objects (RMO) programming interface. | 
| .gif) | ReplicationSchemaBoundView | Represents a schema-bound view and contains information needed by replication. | 
| .gif) | ReplicationServer | Represents an instance of Microsoft SQL Server that is involved in replication. It can take the role of Distributor, Publisher, Subscriber, or any combination of them. | 
| .gif) | ReplicationStatusAndWarning | Represents replication agent status information and threshold monitor warnings. | 
| .gif) | ReplicationStoredProcedure | Represents information on a stored procedure object that is required by replication. | 
| .gif) | ReplicationTable | Represents information on a table object that is required by replication. | 
| .gif) | ReplicationUserDefinedAggregate | Represents a user-defined aggregate function and contains information needed by replication. | 
| .gif) | ReplicationUserDefinedFunction | Represents a user-defined function and contains information needed by replication. | 
| .gif) | ReplicationView | Represents information on a view object that is required by replication. | 
| .gif) | SubscriberSubscription | Returns information about a subscription. | 
| .gif) | Subscription | Represents information at the Publisher for a subscription to either a merge or a transactional publication. Subscription is a base class from which the TransSubscription class and the MergeSubscription class are derived. | 
| .gif) | SubscriptionBackupInformation | Represents information required to initialize a subscription from a backup. | 
| .gif) | SynchronizationPartner | Represents an alternate Publisher used to synchronize a subscription to a merge publication. | 
| .gif) | TracerToken | Represents tracer token information. | 
| .gif) | TransArticle | Represents an article in a transactional publication. | 
| .gif) | TransArticleCollection | Represents a collection of TransArticle objects. | 
| .gif) | TransConflictCount | Represents returned conflict information for a table article in a publication that supports queued updating subscriptions. | 
| .gif) | TransPublication | Represents a transactional publication. | 
| .gif) | TransPublicationCollection | Represents a collection of TransPublication objects. | 
| .gif) | TransPullSubscription | Represents a pull subscription to a transactional publication. | 
| .gif) | TransPullSubscriptionCollection | Represents a collection of TransPullSubscription objects. | 
| .gif) | TransSubscription | Represents a push subscription to a transactional or snapshot publication. | 
| .gif) | TransSubscriptionCollection | Represents a collection of TransSubscription objects. | 
Interfaces
| Interface | Description | |
|---|---|---|
| .gif) | IConnectionSecurityContext | Provides an implementation of the ConnectionSecurityContext class for late-bound COM clients. For information on the members of this interface, see the reference documentation for ConnectionSecurityContext. | 
| .gif) | IProcessSecurityContext | Interface that encapsulates the Microsoft Windows security account information used by Microsoft SQL Server Agent to start a replication agent job. | 
| .gif) | IReplicationDBObject | Infrastructure. | 
Enumerations
| Enumeration | Description | |
|---|---|---|
| .gif) | AddColumnOption | Enumerates the options for adding a column to a table published in an existing publication. | 
| .gif) | AgentProfileTypeOption | Indicates whether a replication agent profile is system-defined or user-defined. | 
| .gif) | AgentType | Enumerates the various types of replication agents. | 
| .gif) | ArticleDatatypeMappingOptions | Specifies whether the data type mapping between two database management systems (DBMS) for an article has been defined by a user or is the default mapping. | 
| .gif) | ArticleOptions | Enumerates the type of database objects that can be published by replication. | 
| .gif) | AuthenticationMethod | Enumerates values that specify the supported HTTP authentication methods for Web synchronization. | 
| .gif) | AutomaticReinitializationPolicies | Enumerates default behaviors when reinitializing subscriptions to a merge publication. | 
| .gif) | CheckPermissionOptions | Enumerates the table-level permissions that are verified when the Merge Agent applies changes at the Publisher. | 
| .gif) | CommandOptions | Enumerates options that control how changes are propagated for transactional articles. | 
| .gif) | ConflictPolicyOption | Enumerates options for selecting the winning row when conflicts occur during synchronization of an updating subscription to a transactional publication. | 
| .gif) | CreationScriptOptions | Enumerates schema option values for published articles. | 
| .gif) | DatabaseCompatibilityLevel | Enumerates the versions of Microsoft SQL Server that are supported for database compatibility with Microsoft SQL Server 2005. | 
| .gif) | DdlReplicationOptions | Enumerates whether data definition language (DDL) changes to published tables are replicated. | 
| .gif) | DtsPackageLocationOption | Enumerates options for the location of the Data Transformation Services (DTS) package. | 
| .gif) | FailoverMode | Enumerates the options available for an updating Subscriber to propagate changes back to the Publisher. | 
| .gif) | FilterTypes | Enumerates values that specify the type of filters used in merge articles. | 
| .gif) | IdentityRangeManagementOption | Enumerates options for managing identity column range assignments in tables published using merge replication and transactional replication with updating Subscribers. | 
| .gif) | InitialSyncType | Enumerates the data file formats supported for the initial snapshot. | 
| .gif) | MergeArticleState | Enumerates the supported status settings for a merge article. | 
| .gif) | MergeSessionDetailType | Enumerates parts of a Merge Agent session being monitored. | 
| .gif) | MergeSessionPhase | Enumerates the phase of a Merge Agent session. | 
| .gif) | MergeSessionStatus | Enumerates the status of a Merge Agent session. | 
| .gif) | MergeSubscriberType | Enumeration additional types of subscriptions supported by merge replication. | 
| .gif) | MonitorCacheRefreshPolicy | Infrastructure. | 
| .gif) | PartitionGroupsOption | Enumerates values that determine whether a merge publication uses precomputed partitions. | 
| .gif) | PartitionOptions | Enumerates the ways in which data in an article is partitioned amongst subscriptions when the merge publication uses a parameterized row filter. | 
| .gif) | PreCreationOption | Enumerates the commands that are executed prior to subscription initialization when a published table already exists in the subscription database. | 
| .gif) | PublicationAttributes | Enumerates supported publication properties. | 
| .gif) | PublicationCompatibilityLevel | Enumerates product version values that are used by merge replication to determine which features can be used by publications in a given database. | 
| .gif) | PublicationType | Enumerates the supported types of replication used to publish a database. | 
| .gif) | QueueOption | Enumerates the type of queuing available to a transactional publication with updating Subscribers. | 
| .gif) | ReplicationSecurityMode | Specifies the supported security modes used by updating Subscribers when connecting to the Publisher. | 
| .gif) | ReplicationStatus | Specifies the status of a replication agent job. | 
| .gif) | ReplicationWarnings | Enumerates the supported replication threshold monitor warning values. | 
| .gif) | ResynchronizeType | Enumerates values that specify the changes to apply when a merge subscription is resynchronized. | 
| .gif) | RetentionPeriodUnits | Enumerates values that specify the units for the retention period. | 
| .gif) | ScheduleConstant | Enumerates constant values used to set replication schedules. | 
| .gif) | ScheduleFrequencySubDay | Enumerates values that specify a smaller scheduling unit for specific schedule frequencies. | 
| .gif) | ScheduleFrequencyType | Enumerates the types of frequencies used when scheduling a replication agent job. | 
| .gif) | ScheduleRelativeIntervals | Enumerates values that represent the frequency of a replication agent schedule relative to the ScheduleFrequencyType. | 
| .gif) | ScriptOptions | Enumerates options for generating scripts that are used to create or remove replication objects. | 
| .gif) | State | Enumerates the values that represent the status of a publication. | 
| .gif) | SubscriberType | Enumerates the types of data sources that can be a Subscriber to a publication. | 
| .gif) | SubscriberUploadOptions | Enumerates merge article options for updates made at a Subscriber with a client subscription. | 
| .gif) | SubscriptionBackupDeviceType | Enumerates backup devices that can be used to initialize a subscription. | 
| .gif) | SubscriptionResultOption | Enumerates options for returning monitored subscriptions. | 
| .gif) | SubscriptionState | Enumerates options for the status of a subscription. | 
| .gif) | SubscriptionSyncType | Enumerates options for how the initial synchronization is performed for a subscription. | 
| .gif) | TransSubscriberType | Enumerates the updating behaviors for subscriptions to transactional publications. | 
| .gif) | ValidationMethod | Enumerates methods supported for rowcount validation of transactional publications. | 
| .gif) | ValidationOption | Enumerates the types of data validation supported by replication. | 
| .gif) | VerifyResolverSignatureOption | Enumerates values that specify whether the Merge Agent must verify the digital signature on a Component Object Model (COM)-based conflict resolver to determine if it is from a trusted source. |