語言

TransSubscription.SubscriberCatalog 屬性

定義

為非 SQL Server 訂閱者建立 OLE DB 提供者連線時,取得或設定所使用的目錄。

public:
 property System::String ^ SubscriberCatalog { System::String ^ get(); void set(System::String ^ value); };
public string SubscriberCatalog { get; set; }
member this.SubscriberCatalog : string with get, set
Public Property SubscriberCatalog As String

屬性值

這個 String 值最多可是 128 個 Unicode 字元。

備註

該SubscriberCatalog屬性只應設定給非 SQL Server 訂閱者使用。

的 SubscriberCatalog 值會作為DBPROP_INIT_CATALOG屬性傳遞,以初始化 OLE DB 提供者。

SubscriberCatalog該屬性僅能由固定伺服器角色的成員sysadmin、固定資料庫角色的成員db_owner,或是建立訂閱的使用者取得。

SubscriberCatalog該屬性只能由固定sysadmin伺服器角色的成員或固定資料庫角色的成員db_owner設定。

取回 SubscriberCatalog 相當於執行 sp_helpsubscription(Transact-SQL)。

設定 SubscriberCatalog 等同於執行 sp_addpushsubscription_agent(Transact-SQL) 或 sp_changesubscription(Transact-SQL)。

適用於