ReplicationDatabase.EnumMergeConflictCounts Method
Returns information on conflicts stored in a merge publication or subscription database.
Espacio de nombres: Microsoft.SqlServer.Replication
Ensamblado: Microsoft.SqlServer.Rmo (in microsoft.sqlserver.rmo.dll)
Sintaxis
'Declaración
Public Function EnumMergeConflictCounts ( _
publicationName As String, _
publisherName As String, _
publicationDB As String _
) As IEnumerable
public IEnumerable EnumMergeConflictCounts (
string publicationName,
string publisherName,
string publicationDB
)
public:
IEnumerable^ EnumMergeConflictCounts (
String^ publicationName,
String^ publisherName,
String^ publicationDB
)
public IEnumerable EnumMergeConflictCounts (
String publicationName,
String publisherName,
String publicationDB
)
public function EnumMergeConflictCounts (
publicationName : String,
publisherName : String,
publicationDB : String
) : IEnumerable
Parámetros
- publicationName
The name of the publication. publicationName is a required parameter.
- publisherName
The name of the Publisher server. publisherName is only supported on Microsoft SQL Server 2000 and later versions.
- publicationDB
The name of the published database. publicationDB is only supported on SQL Server 2000 and later versions.
Valor devuelto
An ArrayList of MergeConflictCount objects.
Excepciones
Tipo de excepción | Condición |
---|---|
ApplicationException | When the database does not exist. When the value of publicationName is null. When publicationDB or publisherName is not null and the version is not SQL Server 2000 or later. |
Notas
The EnumMergeConflictCounts method can be called when connected to a subscription database when decentralized conflict logging is supported. When centralized conflict logging is supported, conflict information can be retrieved from the publication database by calling EnumMergeConflictCounts and supplying null values for the publicationDB or publisherName parameters. For more information, see Cómo la réplica de mezcla detecta y resuelve conflictos.
The EnumMergeConflictCounts method can only be called by members of the db_owner and replmonitor fixed database roles.
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
ReplicationDatabase Class
ReplicationDatabase Members
Microsoft.SqlServer.Replication Namespace