RetentionPeriod Property

この機能は、将来のバージョンの Microsoft SQL Server では削除される予定です。新規の開発作業ではこの機能を使用しないようにし、現在この機能を使用しているアプリケーションは修正することを検討してください。

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

構文

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);

解説

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. The maximum value of the RetentionPeriod property is 2147483647.

Applies To:

MergePublication Object

TransPublication Object