The PublisherAddress property specifies the network address used when connecting to the Publisher when the PublisherNetwork property is specified.
SQLDistribution Object | SQLMerge Object |
object.PublisherAddress [= value]
Part | Description |
---|---|
object | SQL Merge control |
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 was to be accessed over the Internet, PublisherNetwork could be set to TCPIP_SOCKETS and PublisherAddress could be set to a specific IP address.
If the PublisherNetwork is TCP/IP_SOCKETS or MULTI_PROTOCOL over TCP/IP, then the value is in the form of:
'IP address,socket' (i.e. ‘111.11.11.11,1433")
String
Read/write
HRESULT get_PublisherAddress(BSTR *pVal);
HRESULT put_PublisherAddress(BSTR newVal);
PublisherNetwork Property |