Freigeben über


SubscriberType Property (TransPullSubscription, TransSubscription)

Diese Funktion wird in zukünftigen Versionen von Microsoft SQL Server nicht mehr bereitgestellt. Verwenden Sie diese Funktion beim Entwickeln neuer Anwendungen nicht, und planen Sie das Ändern von Anwendungen, in denen es zurzeit verwendet wird.

The SubscriberType property defines subscription behavior when data maintained in a subscribed-to article is altered at the Subscriber.

Syntax

object.SubscriberType [= value]

Parts

  • object
    An expression that evaluates to an object in the Applies To list.

  • value
    A long integer or constant value as described in Settings.

Data Type

Long, enumerated

Modifiable

Read/write when using the SQL Distributed Management Objects (SQL-DMO) object to create a subscription.

Read-only when the object references an existing subscription.

Prototype (C/C++)

HRESULT GetSubscriberType(SQLDMO_TRANSUBSCRIBER_TYPE* pRetVal);
HRESULT SetSubscriberType(SQLDMO_TRANSUBSCRIBER_TYPE NewValue);

Settings

Constant

Value

Description

SQLDMOTranSubscriber_/Default

0

SQLDMOTranSubscriber_/ReadOnly.

SQLDMOTranSubscriber_/ReadOnly

0

A Subscriber update to any publication article affects only the image maintained at the Subscriber.

SQLDMOTranSubscriber_/Synchronous

1

A Subscriber update to a publication article is applied in a distributed transaction, updating the Publisher-maintained image for article data or failing entirely.