DistributionDatabase.MinDistributionRetention 屬性

定義

取得或設定從散發資料庫中刪除交易之前的最小保留期限 (以小時為單位)。

public:
 property int MinDistributionRetention { int get(); void set(int value); };
public int MinDistributionRetention { get; set; }
member this.MinDistributionRetention : int with get, set
Public Property MinDistributionRetention As Integer

屬性值

Int32

Int32 值。

備註

MinDistributionRetention屬性只能由 db_owner replmonitor 散發資料庫上的或固定資料庫角色的成員、使用散發資料庫之發行集的發行集存取清單(PAL)中的使用者,或是在散發資料庫的MSdistributiondbs系統資料表上具有 SELECT 許可權的使用者來抓取。

MinDistributionRetention屬性只能由散發者端之固定伺服器角色的成員來設定 sysadmin

抓取 MinDistributionRetention 屬性相當於執行sp_helpdistributiondb

設定 MinDistributionRetention 屬性相當於執行sp_adddistributiondbsp_changedistributiondb

適用於