RetentionPeriod Property (SQL-DMO)

The RetentionPeriod property specifies a number of days or hours for limiting any subscription to the publication.

Applies To
MergePublication Object TransPublication Object

Syntax

object.RetentionPeriod [= value]

Part Description
object Expression that evaluates to an object in the Applies To list.
value Long integer. For the MergePublication object, RetentionPeriod specifies a number of days. For the TransPublication object, the property specifies a number of hours.

Remarks

A subscription is dropped by the system if the Subscriber identified has not accessed the referenced publication within the period specified by the RetentionPeriod property.

Data Type

Long

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetRetentionPeriod(LPDWORD pRetVal);

HRESULT SetRetentionPeriod(DWORD NewValue);

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.