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