MergeSubscription.Reinitialize Method
Marks the merge subscription for reinitialization.
Spazio dei nomi: Microsoft.SqlServer.Replication
Assembly : Microsoft.SqlServer.Rmo (in microsoft.sqlserver.rmo.dll)
Sintassi
'Dichiarazione
Public Sub Reinitialize ( _
uploadFirst As Boolean _
)
public void Reinitialize (
bool uploadFirst
)
public:
void Reinitialize (
bool uploadFirst
)
public void Reinitialize (
boolean uploadFirst
)
public function Reinitialize (
uploadFirst : boolean
)
Parametri
- uploadFirst
A Boolean value that specifies whether to upload all changes from the Subscriber before reapplying the snapshot to reinitialize the subscription. If true, the changes are uploaded before applying the snapshot. If false, the changes are not uploaded.
Osservazioni
After calling the Reinitialize method, you must start synchronization to reinitialize the subscription. For more information, see How to: Reinitialize a Subscription (RMO Programming).
Set the uploadFirst parameter to false when working with an instance of Microsoft SQL Server 7.0; otherwise an exception is thrown.
The Reinitialize method can only be called by members of the sysadmin fixed server role at the Publisher or by members of the db_owner fixed database role on the publication database.
Calling Reinitialize is equivalent to executing sp_reinitmergesubscription.
The Reinitialize method is available with Microsoft SQL Server 2000 and Microsoft SQL Server 2005.
This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.
Thread Safety
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Piattaforme
Piattaforme di sviluppo
Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.
Piattaforme di destinazione
Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.
Vedere anche
Riferimento
MergeSubscription Class
MergeSubscription Members
Microsoft.SqlServer.Replication Namespace