TransSubscription.SubscriberType 属性

定义

获取或设置订阅服务器上的数据更改的更新行为。

public:
 property Microsoft::SqlServer::Replication::TransSubscriberType SubscriberType { Microsoft::SqlServer::Replication::TransSubscriberType get(); void set(Microsoft::SqlServer::Replication::TransSubscriberType value); };
public Microsoft.SqlServer.Replication.TransSubscriberType SubscriberType { get; set; }
member this.SubscriberType : Microsoft.SqlServer.Replication.TransSubscriberType with get, set
Public Property SubscriberType As TransSubscriberType

属性值

一个 TransSubscriberType 值。

注解

必须在创建订阅之前设置该 SubscriberType 订阅,并且创建订阅后无法更改。

只有 sysadmin 固定服务器角色成员、db_owner 固定数据库角色成员或创建订阅的用户才能检索 SubscriberType 属性。

只有 sysadmin 固定服务器角色成员或 db_owner 固定数据库角色成员才能设置 SubscriberType 属性。

检索 SubscriberType 相当于执行 Transact-SQL) sp_helpsubscription (

设置 SubscriberType 等效于执行 transact-SQL) sp_addsubscription (

适用于