Поделиться через


Run Method (Replication ActiveX)

The Run method executes the replication process using the control properties.

Синтаксис

object.Run
Part Description

object

Expression that evaluates to an object in the Applies To list.

Applies To

SQLDistribution Object (Replication ActiveX)

SQLMerge Object (Replication ActiveX)

Возвращаемое значение

Return code Description

S_OK

Method succeeded.

E_FAIL

General failure occurred. Check error records for detailed information.

REPLX_E_DEADLOCK

Deadlock occurred.

REPLX_E_RETRYFAILURE

Failure occurred that might require retrying the last operation.

REPLX_S_VALIDATIONFAILED

Validation failure occurred.

REPLX_S_CONFLICTSOCCURRED

Conflicts occurred while merging changes (SQLMerge Object (Replication ActiveX) object only).

Замечания

You must call Initialize Method (Replication ActiveX) before calling the Run method. After the Run method returns, you must call Terminate Method (Replication ActiveX).

In Microsoft Visual Basic, Run is a Sub method and does not return a value.

Prototype (C/C++)

HRESULT Run( );

См. также

Основные понятия

Programming Replication Using ActiveX Controls

Справка и поддержка

Получение помощи по SQL Server 2005