DistributorAddress 属性(复制)

DistributorAddress 属性指定在连接到分发服务器时使用的网络地址。当指定 DistributorNetwork 属性时指定 DistributorAddress 属性。

语法

object.DistributorAddress [= value]

参数

  • value
    连接到分发服务器时使用的网络地址

适用范围

SQL Server 2005 Compact Edition (SQL Server Compact Edition) Replication 对象

数据类型

String

可修改

读/写

原型

HRESULT get_DistributorAddress(BSTR *pVal);
HRESULT put_DistributorAddress(BSTR newVal);

备注

只有当 DistributorNetwork 设置为 DEFAULT_NETWORK 以外的值时此属性才是必需的。

指定此属性可以指示 SQL Server 协调器与分发服务器通信的方式。例如,如果 SQL Server Compact Edition 服务器代理和分发服务器分别位于两个不同的系统上,并且这些系统通过 Internet 进行通信,则 DistributorNetwork 可以设置为 TCP/IP_SOCKETS,而 DistributorAddress 可以设置为特定的 IP 地址。如果 DistributorNetwork 是 TCP/IP_SOCKETS 或使用 TCP/IP 的 MULTI_PROTOCOL,则 DistributorNetwork 的值为“IP 地址,套接字”形式,例如,“111.11.11.11,1433”。

如果未指定任何分发服务器连接属性,将假定发布服务器和分发服务器位于同一个 SQL Server 实例上,并在连接到分发服务器时使用发布服务器连接属性。但是,如果设置了任何一个分发服务器连接属性,则必须设置所有必需的分发服务器属性。

请参阅

参考

DistributorNetwork 属性(复制)
Distributor 属性(复制)
Replication 对象属性

帮助和信息

获取 SQL Server Compact Edition 帮助