Udostępnij za pośrednictwem


SubscriptionName Property (Replication ActiveX)

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

Important

Support has been dropped for creating subscriptions in Windows Synchronization. You can still synchronize subscriptions through Windows Synchronization Manager. For more information, see Windows Synchronization Manager.

Syntax

object.Subscription [= value]
Part Description

object

Expression that evaluates to an object in the Applies To list.

value

Name of the Subscription.

Applies To

SQLDistribution Object (Replication ActiveX)

SQLMerge Object (Replication ActiveX)

Remarks

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

The SubscriptionName property is not persisted. All subsequent merges will show the property to be formatted as subscribername**:**subscriberdatabase.

This is consistent with the way subscription names are shown in SQL Server Management Studio.

Data Type

String

Modifiable

Read/write

Prototype (C/C++)

HRESULT get_SubscriptionName(BSTR *pVal);
HRESULT put_SubscriptionName(BSTR newVal);