共用方式為


TransPublication.ReinitializeAllSubscriptions 方法

Marks all subscriptions to the publication for reinitialization.

命名空間:  Microsoft.SqlServer.Replication
組件:  Microsoft.SqlServer.Rmo (在 Microsoft.SqlServer.Rmo.dll 中)

語法

'宣告
Public Sub ReinitializeAllSubscriptions
'用途
Dim instance As TransPublication

instance.ReinitializeAllSubscriptions()
public void ReinitializeAllSubscriptions()
public:
void ReinitializeAllSubscriptions()
member ReinitializeAllSubscriptions : unit -> unit
public function ReinitializeAllSubscriptions()

備註

The ReinitializeAllSubscriptions method can only be called by members of the sysadmin fixed server role at the Publisher, by members of the db_owner fixed database role on the publication database, or by a user that created a subscription.

Calling ReinitializeAllSubscriptions is equivalent to executing sp_reinitsubscription.

請參閱

參考

TransPublication 類別

ReinitializeAllSubscriptions 多載

Microsoft.SqlServer.Replication 命名空間