Publication Property

Replication Programming

Replication Programming

Publication Property

The Publication property returns or sets the name of the publication.

Applies To

AlternateSyncPartner Object

SQLDistribution Object

SQLMerge Object

SQLSnapshot Object

Syntax

object.Publication [= value]

Part Description
object Expression that evaluates to an object in the Applies To list.
value Publication name.
Remarks

This is a required property. An error is raised if it is set to an empty string.

If using the SQL Distribution Control to synchronize multiple publications configured to use a shared agent, the value must be ALL. For more information about shared agents, see sp_addpublication.

Data Type

String

Modifiable

Read/write

Prototype C/C++

HRESULT get_Publication(BSTR *pVal);

HRESULT put_Publication(BSTR newVal);

See Also

Publisher Property

PublisherDatabase Property