The DistributionServer property identifies an instance of Microsoft® SQL Server™ that acts as a Distributor for published data.
object.DistributionServer [= value]
object
Expression that evaluates to an object in the Applies To list
value
Name of an instance of SQL Server in the organization
String
Read/write
HRESULT GetDistributionServer(SQLDMO_LPBSTR pRetVal);
HRESULT SetDistributionServer(SQLDMO_LPCSTR NewValue);
Note 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 may 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.