DistributionDatabase.MinDistributionRetention 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定最短保留期(以小時計),在交易從分發資料庫刪除前。
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_adddistributiondb 或 sp_changedistributiondb。