SetFailoverMode Method (Replication ActiveX)

The SetFailoverMode method sets the update mode for updating subscriptions that support failover.

語法

object.SetFailoverMode FailoverMode 
Part Description

object

Expression that evaluates to a SQLDistribution Object (Replication ActiveX) object.

FailoverMode

Value from the REPL_FAILOVER_MODE (Replication ActiveX) enumeration.

Applies To

SQLDistribution Object (Replication ActiveX)

備註

To use this method, the subscription must support failover. For more information, see How to: Create an Updatable Subscription to a Transactional Publication (Replication Transact-SQL Programming).

Prototype (C/C++)

HRESULT SetFailoverMode(REPL_FAILOVER_MODE FailoverMode);

請參閱

工作

How to: Enable Updating Subscriptions for Transactional Publications (Replication Transact-SQL Programming)

參考

REPL_FAILOVER_MODE (Replication ActiveX)

說明及資訊

取得 SQL Server 2005 協助