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

object.PublisherAddress [= value]

Applies To

SQL Server Compact 3.5 Replication object

  • value
    Network connection string

Data Type

String

Modifiable

Read/write

Prototype

HRESULT get_PublisherAddress(BSTR *pVal);
HRESULT put_PublisherAddress(BSTR newVal);

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

Specify this property to indicate how the SQL Server Compact 3.5 Replication Provider communicates with the Publisher. For example, if the SQL Server Compact 3.5 Replication Agent and the Publisher are located on two different systems and these two systems communicate over the Internet, PublisherNetwork could be set to TCP/IP_SOCKETS, and PublisherAddress could be set to a specific IP address.

If PublisherNetwork is TCP/IP_SOCKETS or MULTI_PROTOCOL using TCP/IP, the PublisherAddress value is in the form of 'IP address,socket' (for example, '111.11.11.11,1433').

Reference

PublisherNetwork Property (Replication)

Replication Object Properties