次の方法で共有


HistoryRetention Property

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

The HistoryRetention property specifies the number of hours to maintain replication distribution history data.

構文

object
.HistoryRetention [=value]

Parts

  • object
    An expression that evaluates to an object in the Applies To list.
  • value
    A positive long integer. The default is 48 hours.

Data Type

Long

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetHistoryRetention(LPDWORD pRetVal);
HRESULT SetHistoryRetention(DWORD NewValue);

解説

Installing replication creates a SQL Server Agent job responsible for cleaning the replication history tables. Rows in the tables older than the current hour minus the retention period are targets of the cleaning.

Applies To:

DistributionDatabase Object