Freigeben über


RetentionPeriod Property

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 RetentionPeriod property specifies a number of days or hours for limiting any subscription to the publication.

Syntax

object.RetentionPeriod [= value]

Parts

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

  • value
    A long integer. For the MergePublication object, RetentionPeriod specifies a number of days. For the TransPublication object, the property specifies a number of hours.

Data Type

Long

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetRetentionPeriod(LPDWORD pRetVal);
HRESULT SetRetentionPeriod(DWORD NewValue);

Hinweise

A subscription is dropped by the system if the Subscriber identified has not accessed the referenced publication within the period specified by the RetentionPeriodproperty. The maximum value of the RetentionPeriod property is 2147483647.