MergePublication.UsesHostName Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a value that indicates whether the merge publication has a parameterized row filter that uses the HOST_NAME function to evaluate the partition.
public:
property bool UsesHostName { bool get(); };
public bool UsesHostName { get; }
member this.UsesHostName : bool
Public ReadOnly Property UsesHostName As Boolean
Property Value
true if the merge publication uses the HOST_NAME function to evaluate the partition; false if the merge publication does not use the HOST_NAME function to evaluate the partition.
Exceptions
When the publication does not exist at the Publisher.
When the version is not Microsoft SQL Server 2005 or later.
Remarks
The UsesHostName property can be retrieved by members of the db_owner or replmonitor fixed database roles on the publication database or by members of the publication access list (PAL) for the publication.
Retrieving UsesHostName is equivalent to executing sp_helpmergepublication.