DistributionDatabase.CleanUpAnonymousSubscription 메서드

Removes metadata for anonymous subscriptions at the Distributor.

네임스페이스:  Microsoft.SqlServer.Replication
어셈블리:  Microsoft.SqlServer.Rmo(Microsoft.SqlServer.Rmo.dll)

public void CleanUpAnonymousSubscription(
	int agentId,
	PublicationType publicationType

매개 변수

유형: System.Int32
An Int32 value that specifies the agent ID value.
유형: Microsoft.SqlServer.Replication.PublicationType
A PublicationType object value that specifies the publication type.

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 복제 모니터링.

The CleanUpAnonymousSubscription method can only be called by members of the db_owner fixed database role on the distribution database.

커뮤니티 추가 항목