Represents a publication or subscription database in a replication topology.
The following tables list the members exposed by the ReplicationDatabase type.
Public Constructors
| 名称 | Description | |
|---|---|---|
| ReplicationDatabase | Overloaded. Initializes a new instance of the ReplicationDatabase class. | 
顶部
Public Properties
| 名称 | Description | |
|---|---|---|
| .gif) | AllowMergePublication | Specifies whether or not the database can be published using merge replication. | 
| .gif) | CachePropertyChanges | Gets or sets whether to cache changes made to the replication properties or to apply them immediately. (inherited from ReplicationObject) | 
| .gif) | CompatibilityLevel | Gets the minimum version of SQL Server with which the database has compatible behavior. | 
| .gif) | ConnectionContext | Gets or sets the connection to an instance of Microsoft SQL Server. (inherited from ReplicationObject) | 
| .gif) | DBOwner | Gets if the login used by the current connection has ownership rights to the database. | 
| .gif) | DBReadOnly | Gets whether the database is read-only or not. | 
| .gif) | EnabledMergePublishing | Gets or sets whether the database is enabled for merge publishing or not. | 
| .gif) | EnabledTransPublishing | Gets or sets whether the database is enabled for transactional or snapshot publishing or not. | 
| .gif) | HasPublications | Gets whether or not the database has existing publications. | 
| .gif) | HasPullSubscriptions | Gets whether or not the database has existing pull subscriptions. | 
| .gif) | IsExistingObject | Gets whether the object exists on the server or not. (inherited from ReplicationObject) | 
| .gif) | LogReaderAgentExists | Gets whether or not the Log Reader Agent has been created for the publication database. | 
| .gif) | LogReaderAgentName | Gets the name of an existing Log Reader Agent or sets the name when creating a new Log Reader Agent for a published database. | 
| .gif) | LogReaderAgentProcessSecurity | Gets the Microsoft Windows account under which the Log Reader Agent job runs at the Distributor. | 
| .gif) | LogReaderAgentPublisherSecurity | Gets the login used by the Log Reader Agent to connect to the Publisher. | 
| .gif) | MergePublications | Returns the merge publications defined on the replication database. | 
| .gif) | MergePullSubscriptions | Returns the merge pull subscriptions defined on the replication database. | 
| .gif) | Name | Gets or sets the name of the replication database. | 
| .gif) | QueueReaderAgentExists | Gets whether or not a Queue Reader Agent job exists for the database. | 
| .gif) | QueueReaderAgentProcessSecurity | Gets the Microsoft Windows account under which the Queue Reader Agent job runs at the Distributor. | 
| .gif) | SqlServerName | Gets the name of the Microsoft SQL Server instance to which this object is connected. (inherited from ReplicationObject) | 
| .gif) | TransPublications | Returns the transactional or snapshot publications defined on the replication database. | 
| .gif) | TransPullSubscriptions | Represents the pull subscriptions to a transactional or snapshot publication defined on the replication database. | 
| .gif) | UserData | Gets or sets an object property that allows users to attach their own data to the object. (inherited from ReplicationObject) | 
顶部
Public Methods
(see also Protected Methods )
| 名称 | Description | |
|---|---|---|
| .gif) | CommitPropertyChanges | Sends all the cached property change statements to the instance of Microsoft SQL Server. (inherited from ReplicationObject) | 
| .gif) | CreateLogReaderAgent | Creates a Log Reader Agent job for a database published with transactional replication. | 
| .gif) | CreateQueueReaderAgent | Creates a Queue Reader Agent job for the distribution database. | 
| .gif) | Decouple | Decouples the referenced replication object from the server. (inherited from ReplicationObject) | 
| .gif) | EnumConflictTables | Returns conflict information for all merge publications and subscriptions that use the replication database. | 
| .gif) | EnumMergeConflictCounts | Returns information on conflicts stored in a merge publication or subscription database. | 
| .gif) | EnumMergePublications | Returns a list of merge publications that use the replication database. | 
| .gif) | EnumMergePullSubscriptions | Returns all merge pull subscriptions that use this replication database. | 
| .gif) | EnumPublicationArticles | Returns replication information for published objects in the replication database. | 
| .gif) | EnumReplicationSchemaBoundViews | Returns all user-defined schema-bound view objects in the database. | 
| .gif) | EnumReplicationStoredProcedures | Returns all user-defined stored procedure objects in the database. | 
| .gif) | EnumReplicationTables | Returns all user-defined table objects in the database. | 
| .gif) | EnumReplicationUserDefinedAggregates | Returns a list of user-defined aggregates in the database. | 
| .gif) | EnumReplicationUserDefinedFunctions | Returns a list of user-defined functions in the database. | 
| .gif) | EnumReplicationViews | Returns a list of the user-defined views objects in the database. | 
| .gif) | EnumTransConflictCounts | Returns information on conflicts stored in an updating transactional publication or subscription database. | 
| .gif) | EnumTransPublications | Returns a list of transactional and snapshot publications that use the database. | 
| .gif) | EnumTransPullSubscriptions | Returns a list of transactional and snapshot pull subscriptions that use the database. | 
| .gif) | Equals | Overloaded. (inherited from Object ) | 
| .gif) | GetHashCode | (inherited from Object ) | 
| .gif) | GetType | (inherited from Object ) | 
| .gif) | LinkPublicationForUpdateableSubscription | Sets the configuration and security information used by synchronization triggers of updatable subscriptions when connecting to the Publisher. | 
| .gif) | Load | Loads the properties of an existing object from the server. (inherited from ReplicationObject) | 
| .gif) | LoadProperties | Loads the properties of an existing object from the server. (inherited from ReplicationObject) | 
| .gif) | ReadSubscriptionFailoverMode | Returns the failover mode for an updating subscription to a transactional or snapshot publication. | 
| .gif) .gif) | ReferenceEquals | (inherited from Object ) | 
| .gif) | Refresh | Reloads the properties of the object. (inherited from ReplicationObject) | 
| .gif) | Script | Returns a Transact-SQL script to enable or disable replication publishing and subscriptions on the database based on the properties of ReplicationDatabase. | 
| .gif) | ScriptReplicationDBOption | Returns a Transact-SQL script to enable or disable replication options on the database based on the properties of ReplicationDatabase. | 
| .gif) | ToString | (inherited from Object ) | 
| .gif) | WriteSubscriptionFailoverMode | Sets the failover mode for an updating subscription to a transactional or snapshot publication. | 
顶部
Protected Methods
| 名称 | Description | |
|---|---|---|
| .gif) | CheckValidCreation | (inherited from ReplicationObject ) | 
| .gif) | CheckValidDefinition | (inherited from ReplicationObject ) | 
| .gif) | Finalize | (inherited from Object ) | 
| .gif) | GetChangeCommand | (inherited from ReplicationObject ) | 
| .gif) | GetCreateCommand | (inherited from ReplicationObject ) | 
| .gif) | GetDropCommand | (inherited from ReplicationObject ) | 
| .gif) | InternalRefresh | (inherited from ReplicationObject ) | 
| .gif) | MemberwiseClone | (inherited from Object ) | 
顶部
请参阅
参考
ReplicationDatabase Class
Microsoft.SqlServer.Replication Namespace
其他资源
How to: Configure Publishing and Distribution (RMO Programming)
How to: Create a Publication (RMO Programming)
How to: Delete a Publication (RMO Programming)