Returns information on conflicts stored in a merge publication or subscription database.
命名空间: Microsoft.SqlServer.Replication
程序集: Microsoft.SqlServer.Rmo(在 Microsoft.SqlServer.Rmo.dll 中)
语法
声明
Public Function EnumMergeConflictCounts ( _
publicationName As String, _
publisherName As String, _
publicationDB As String _
) As IEnumerable
用法
Dim instance As ReplicationDatabase
Dim publicationName As String
Dim publisherName As String
Dim publicationDB As String
Dim returnValue As IEnumerable
returnValue = instance.EnumMergeConflictCounts(publicationName, _
publisherName, publicationDB)
public IEnumerable EnumMergeConflictCounts(
string publicationName,
string publisherName,
string publicationDB
)
public:
IEnumerable^ EnumMergeConflictCounts(
String^ publicationName,
String^ publisherName,
String^ publicationDB
)
member EnumMergeConflictCounts :
publicationName:string *
publisherName:string *
publicationDB:string -> IEnumerable
public function EnumMergeConflictCounts(
publicationName : String,
publisherName : String,
publicationDB : String
) : IEnumerable
参数
- publicationName
类型:System.String
The name of the publication. publicationName is a required parameter.
- publisherName
类型:System.String
The name of the Publisher server.
- publicationDB
类型:System.String
The name of the published database.
返回值
类型:System.Collections.IEnumerable
An ArrayList of MergeConflictCount objects.
异常
异常 | 条件 |
---|---|
ApplicationException | When the database does not exist. When the value of publicationName is null. |
注释
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 合并复制如何检测和解决冲突.
The EnumMergeConflictCounts method can only be called by members of the db_owner and replmonitor fixed database roles.