PublisherAddress Property

Replication Programming

Replication Programming

PublisherAddress Property

The PublisherAddress property specifies the network address used when connecting to the Publisher when the PublisherNetwork property is specified.

Applies To

SQLDistribution Object

SQLMerge Object


object.PublisherAddress [= value]

Part Description
object Expression that evaluates to an object in the Applies To list.
value Network connection string.

This is a required property when PublisherNetwork is set to a value other than DEFAULT_NETWORK.

This property is useful when configuring the control to connect to the Publisher without having to use SQL Server Client Network Utility.

For example, if the Publisher is to be accessed over the Internet, PublisherNetwork can be set to TCPIP_SOCKETS and PublisherAddress can be set to a specific IP address.

If the PublisherNetwork is TCP/IP_SOCKETS or MULTI_PROTOCOL over TCP/IP, the value is in the form of:

'IP address, socket' (i.e. ',1433")
Data Type




Prototype C/C++

HRESULT get_PublisherAddress(BSTR *pVal);

HRESULT put_PublisherAddress(BSTR newVal);

See Also

PublisherNetwork Property