SubscriptionName Property

Replication Programming

Replication Programming

SubscriptionName Property

The SubscriptionName property specifies a display name for the subscription. This name is used in the Windows Synchronization Manager user interface.

Applies To

SQLDistribution Object

SQLMerge Object

Syntax

object.Subscription [= value]

Part Description
object Expression that evaluates to an object in the Applies To list.
value Name of the Subscription.
Remarks

If SubscriptionName is not specified, a subscription name is set using Subscriber name, Subscriber database, and publication.

The SubscriptionName property is not persisted anywhere except in the operating system registry for the current user Synchronization manager settings. All subsequent merges will show the property to be formatted:

subscribername:subscriberdatabase 

This is consistent with the way subscription names are shown in SQL Server Enterprise Manager.

Data Type

String

Modifiable

Read/write

Prototype (C/C++)

HRESULT get_SubscriptionName(BSTR *pVal);

HRESULT put_SubscriptionName(BSTR newVal);