DistributionDatabase.CleanUpAnonymousSubscription Method
Removes metadata for anonymous subscriptions at the Distributor.
Espacio de nombres: Microsoft.SqlServer.Replication
Ensamblado: Microsoft.SqlServer.Rmo (in microsoft.sqlserver.rmo.dll)
Sintaxis
'Declaración
Public Sub CleanUpAnonymousSubscription ( _
agentId As Integer, _
publicationType As PublicationType _
)
public void CleanUpAnonymousSubscription (
int agentId,
PublicationType publicationType
)
public:
void CleanUpAnonymousSubscription (
int agentId,
PublicationType publicationType
)
public void CleanUpAnonymousSubscription (
int agentId,
PublicationType publicationType
)
public function CleanUpAnonymousSubscription (
agentId : int,
publicationType : PublicationType
)
Parámetros
- agentId
An Int32 value that specifies the agent ID value.
- publicationType
A PublicationType object value that specifies the publication type.
Notas
Use the CleanUpAnonymousSubscription method to remove the metadata for anonymous subscriptions that have expired or that no longer exist. Otherwise, this metadata may be returned by Replication Monitor. You can also use the ExcludeAnonymousSubscriptions property to prevent anonymous subscription information from being returned. For more information, see Supervisión de la réplica con el Monitor de réplica.
The CleanUpAnonymousSubscription method can only be called by members of the db_owner fixed database role on the distribution database.
The CleanUpAnonymousSubscription method can only be used with SQL Server 2000 or later.
Seguridad para subprocesos
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.
Plataformas
Plataformas de desarrollo
Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.
Plataformas de destino
Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.
Vea también
Referencia
DistributionDatabase Class
DistributionDatabase Members
Microsoft.SqlServer.Replication Namespace