Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library

DistributionPublication Class

 

Applies To: SQL Server 2016 Preview

Represents information about a transactional or snapshot publication stored at the Distributor.

Namespace:   Microsoft.SqlServer.Replication
Assembly:  Microsoft.SqlServer.Rmo (in Microsoft.SqlServer.Rmo.dll)

System.Object
  Microsoft.SqlServer.Replication.ReplicationObject
    Microsoft.SqlServer.Replication.DistributionPublication

public sealed class DistributionPublication : ReplicationObject

NameDescription
System_CAPS_pubmethodDistributionPublication()

Creates a new instance of the DistributionPublication class.

System_CAPS_pubmethodDistributionPublication(String, String, String, String, ServerConnection)

Creates a new instance of the DistributionPublication class, with the required properties and with a connection to the Distributor.

NameDescription
System_CAPS_pubpropertyAttributes

Gets or sets the publication attributes for the distribution publication.

System_CAPS_pubpropertyCachePropertyChanges

Gets or sets whether to cache changes made to the replication properties or to apply them immediately.(Inherited from ReplicationObject.)

System_CAPS_pubpropertyConnectionContext

Gets or sets the connection to an instance of Microsoft SQL Server.(Inherited from ReplicationObject.)

System_CAPS_pubpropertyDescription

Gets or sets a description for the publication.

System_CAPS_pubpropertyDistributionArticles

Returns information about the articles in the publication stored at the Distributor.

System_CAPS_pubpropertyDistributionDBName

Gets or sets the name of the distribution database for the publication.

System_CAPS_pubpropertyDistributionSubscriptions

Represents information about subscriptions to the publication stored at the Distributor.

System_CAPS_pubpropertyIsExistingObject

Gets whether the object exists on the server or not.(Inherited from ReplicationObject.)

System_CAPS_pubpropertyLogReaderAgent

Gets or sets the name of the Log Reader Agent job for the transactional publication.

System_CAPS_pubpropertyName

Gets or sets the name of the publication.

System_CAPS_pubpropertyPubId

Gets the publication ID.

System_CAPS_pubpropertyPublicationDBName

Gets or sets the name of the publication database.

System_CAPS_pubpropertyPublisherName

Gets or sets the name of the Publisher.

System_CAPS_pubpropertySnapshotAgent

Gets or sets the name of the Snapshot Agent job for the transactional publication.

System_CAPS_pubpropertySqlServerName

Gets the name of the Microsoft SQL Server instance to which this object is connected. (Inherited from ReplicationObject.)

System_CAPS_pubpropertyType

Gets or sets the type of replication for this publication.

System_CAPS_pubpropertyUserData

Gets or sets an object property that allows users to attach their own data to the object. (Inherited from ReplicationObject.)

System_CAPS_pubpropertyVendorName

Gets or sets the product manufacturer of the non-SQL Server Publisher of the publication.

NameDescription
System_CAPS_pubmethodCommitPropertyChanges()

Sends all the cached property change statements to the instance of Microsoft SQL Server.(Inherited from ReplicationObject.)

System_CAPS_pubmethodCreate()

Creates the publication metadata at the Distributor.

System_CAPS_pubmethodDecouple()

Decouples the referenced replication object from the server. (Inherited from ReplicationObject.)

System_CAPS_pubmethodEnumDistributionArticles()

Returns information maintained at the Distributor on articles in this publication.

System_CAPS_pubmethodEnumDistributionSubscriptions()

Returns information maintained at the Distributor for subscriptions to this publication.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodLoad()

Loads the properties of an existing object from the server. (Inherited from ReplicationObject.)

System_CAPS_pubmethodLoadProperties()

Loads the properties of an existing object from the server. (Inherited from ReplicationObject.)

System_CAPS_pubmethodRefresh()

Reloads the properties of the object. (Inherited from ReplicationObject.)

System_CAPS_pubmethodRemove()

Removes metadata for the publication from the Distributor.

System_CAPS_pubmethodScript(ScriptOptions)

Generates a Transact-SQL script that can be used to create or remove the publication metadata at the Distributor.

System_CAPS_pubmethodToString()

(Inherited from Object.)

The DistributionPublication class is used primarily by SQL Server Management Studio and for non-SQL Server Publishers. To create, view, or modify the properties of a publication, you should instead use an instance of the TransPublication class.

The DistributionPublication class requires a connection to the Distributor.

Any public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top

Community Additions

Show:
© 2015 Microsoft