DistributionDatabase Members

Include Protected Members
Include Inherited Members

Represents a distribution database at the Distributor.

The DistributionDatabase type exposes the following members.

Constructors

  Name Description
Public method DistributionDatabase() Creates a new instance of the DistributionDatabase class.
Public method DistributionDatabase(String, ServerConnection) Creates a new instance of the DistributionDatabase class, with the specified database name and a connection to the Distributor.

Top

Methods

  Name Description
Protected method CheckValidCreation() Infrastructure. (Inherited from ReplicationObject.)
Protected method CheckValidDefinition(Boolean) Infrastructure. (Inherited from ReplicationObject.)
Public method CleanUpAnonymousSubscription(Int32, PublicationType) Removes metadata for anonymous subscriptions at the Distributor.
Public method CommitPropertyChanges() Sends all the cached property change statements to the instance of Microsoft SQL Server. (Inherited from ReplicationObject.)
Public method Create() Creates the distribution database.
Public method CreateQueueReaderAgent() Creates the Queue Reader Agent job on the distribution database.
Public method Decouple() Decouples the referenced replication object from the server. (Inherited from ReplicationObject.)
Public method Equals(Object) (Inherited from Object.)
Protected method Finalize() (Inherited from Object.)
Protected method GetChangeCommand(StringBuilder, String, String) Infrastructure. (Inherited from ReplicationObject.)
Protected method GetCreateCommand(StringBuilder, Boolean, ScriptOptions) Infrastructure. (Inherited from ReplicationObject.)
Protected method GetDropCommand(StringBuilder, Boolean) Infrastructure. (Inherited from ReplicationObject.)
Public method GetHashCode() (Inherited from Object.)
Public method GetType() (Inherited from Object.)
Protected method InternalRefresh(Boolean) Infrastructure. (Inherited from ReplicationObject.)
Public method Load() Loads the properties of an existing object from the server. (Inherited from ReplicationObject.)
Public method LoadProperties() Loads the properties of an existing object from the server. (Inherited from ReplicationObject.)
Protected method MemberwiseClone() (Inherited from Object.)
Public method Refresh() Reloads the properties of the object. (Inherited from ReplicationObject.)
Public method RegisterBusinessLogicHandler(BusinessLogicHandler) Registers a business logic handler assembly at the Distributor.
Public method Remove() Deletes the distribution database.
Public method Script(ScriptOptions) Generates a Transact-SQL script that can be used to create or delete the distribution database that the object represents.
Public method ToString() (Inherited from Object.)
Public method UnregisterBusinessLogicHandler(BusinessLogicHandler) Removes the registration for a business logic handler from the Distributor.

Top

Properties

  Name Description
Public property CachePropertyChanges Gets or sets whether to cache changes made to the replication properties or to apply them immediately. (Inherited from ReplicationObject.)
Public property ConnectionContext Gets or sets the connection to an instance of Microsoft SQL Server. (Inherited from ReplicationObject.)
Public property DataFile Gets or sets the name of the data file for the distribution database.
Public property DataFileSize Gets or sets the size of the primary database file for the distribution database.
Public property DataFolder Gets or sets the path to the directory that contains the data file for the distribution database.
Public property DistributionCleanupTaskName Gets the name of the SQL Server Agent job that is responsible for cleaning up the replication tables in the distribution.
Public property DistributorSecurity Gets the security context used to connect to the Distributor to create the distribution database.
Public property HistoryCleanupTaskName Gets the name of the SQL Server Agent job that is responsible for cleaning up replication history tables.
Public property HistoryRetention Gets or sets the length of time, in hours, replication agent history data is to be retained.
Public property IsExistingObject Gets whether the object exists on the server or not. (Inherited from ReplicationObject.)
Public property LogFile Gets or sets the name of the file that stores database transaction log records.
Public property LogFileSize Gets or sets the size of the file that stores database transaction log records.
Public property LogFolder Gets or sets the path to the directory where the file that stores database transaction log records is located.
Public property MaxDistributionRetention Gets or sets the maximum retention period, in hours, before transactions are deleted from the distribution database.
Public property MinDistributionRetention Gets or sets the minimum retention period, in hours, before transactions are deleted from the distribution database.
Public property Name Gets or sets the name of the distribution database.
Public property QueueReaderAgentExists Gets or sets whether the Queue Reader Agent job has been created for this distribution database.
Public property QueueReaderAgentName Gets or sets the name of the Queue Reader Agent job created for this distribution database.
Public property QueueReaderAgentProcessSecurity Gets the agent process security context for running the Queue Reader Agent job.
Public property SqlServerName Gets the name of the Microsoft SQL Server instance to which this object is connected. (Inherited from ReplicationObject.)
Public property UserData Gets or sets an object property that allows users to attach their own data to the object. (Inherited from ReplicationObject.)

Top