DistributionServer Property
未來的 Microsoft SQL Server 版本將移除這項功能。請避免在新的開發工作中使用這項功能,並規劃修改目前使用這項功能的應用程式。
The DistributionServer property identifies an instance of Microsoft SQL Server that acts as a Distributor for published data.
語法
object.DistributionServer [=value]
Parts
object
An expression that evaluates to an object in the Applies To listvalue
The name of an instance of SQL Server in the organization
Data Type
String
Modifiable
Read/write
Prototype (C/C++)
HRESULT GetDistributionServer(SQLDMO_LPBSTR pRetVal);
HRESULT SetDistributionServer(SQLDMO_LPCSTR NewValue);
[!附註]
SQL Distributed Management Objects (SQL-DMO) strings are always returned as OLE BSTR objects. A C/C++ application obtains a reference to the string. The application must release the reference using SysFreeString.
備註
For SQL Server, replication Publishers do not need to also distribute published data. One or more instances of SQL Server can act as Distributors. If the Publisher is not its own Distributor, the DistributionServer identifies that server.
For instances of SQL Server that act as their own Distributors, the DistributionServer property is equal to the Name property of the SQLServer object.