語言

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 價值。

備註

MinDistributionRetention此屬性僅能由發行db_owner資料庫中 or replmonitor 固定資料庫角色的成員、使用發行資料庫的出版存取清單(PAL)中的使用者,或擁有 SELECT 權限的 MSdistributiondbs 系統資料表存取者取得。

MinDistributionRetention該屬性只能由分配器固定伺服器角色的成員sysadmin設定。

收回 MinDistributionRetention 財產等同於執行 sp_helpdistributiondb

設定 MinDistributionRetention 屬性等同於執行 sp_adddistributiondbsp_changedistributiondb

適用於