ReplicationServer.DistributorInstalled 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取当前连接的SQL Server实例是否具有本地或远程分发服务器。
public:
property bool DistributorInstalled { bool get(); };
public bool DistributorInstalled { get; }
member this.DistributorInstalled : bool
Public ReadOnly Property DistributorInstalled As Boolean
属性值
一个指定发布服务器使用的是本地分发服务器还是远程分发服务器的 Boolean 值。
如果为 true
,则分发服务器是本地的。
如果为 false
,则此发布服务器的分发服务器在远程服务器上。
注解
发布服务器可以使用本地或远程分发服务器。
DistributorInstalled属性可由公共固定数据库角色的成员检索。
此属性 DistributorInstalled 等效于 transact-SQL) 存储过程sp_get_distributor ( 。