SQLReplErrors Collection

Replication Programming

Replication Programming

SQLReplErrors Collection

The SQLReplErrors collection contains an SQLReplError object for each error that has occurred during the most recent method execution of a Microsoft® ActiveX® replication control.

Applies To

SQLDistribution Object

SQLMerge Object

SQLSnapshot Object

Properties

Count Property

Methods

Add Method

AddReplError Method

Events

Notify Event

Remarks

A reference to the SQLReplErrors collection is obtained from the ErrorRecords property of replication ActiveX controls. The collection is cleared before the execution of each control method.

To refer to the elements of this collection from a Microsoft Visual Basic® application, in the Project/References dialog box, select Microsoft SQL Replication Errors 8.0. In a C++ application, include Replerrx.h and reference Replerrx.dll from the project/NMAKE file.

An interface ISQLReplErrors is available directly from the replication ActiveX control components; however, using the SQLReplErrors collection is recommended.

See Also

ErrorRecords Property

SQLReplError Object