sp_setreplfailovermode (Transact-SQL)

 

Applies To: SQL Server

Allows you to set the failover operation mode for subscriptions enabled for immediate updating with queued updating as failover. This stored procedure is executed at the Subscriber on the subscription database. For more information about failover modes, see Updatable Subscriptions for Transactional Replication.

Topic link icon Transact-SQL Syntax Conventions

  
sp_setreplfailovermode [ @publisher= ] 'publisher'  
    [ , [ @publisher_db = ] 'publisher_db' ]  
    [ , [ @publication= ] 'publication' ]  
    [ , [ @failover_mode= ] 'failover_mode' ]  
    [ , [ @override = ] override ]  

[ @publisher=] 'publisher'
Is the name of the publication. publication is sysname, with no default. The publication must already exist.

[ @publisher_db =] 'publisher_db'
Is the name of the publication database. publisher_db is sysname, with no default.

[ @publication=] 'publication'
Is the name of the publication. publicationis sysname, with no default.

[@failover_mode=] 'failover_mode'
Is the failover mode for the subscription. failover_mode is nvarchar(10) and can be one of these values.

ValueDescription
immediate or syncData modifications made at the Subscriber are bulk-copied to the Publisher as they occur.
queuedData modifications are stored in a Microsoft SQL Server queue.
System_CAPS_ICON_note.jpg Note


Microsoft Message Queuing has been deprecated and is no longer supported.

[ @override= ] override
Internal use only.

0 (success) or 1 (failure)

sp_setreplfailovermode is used in snapshot replication or transactional replication for which subscriptions are enabled, either for queued updating with failover to immediate updating, or for immediate updating with failover to queued updating.

Only members of the sysadmin fixed server role or db_owner fixed database role can execute sp_setreplfailovermode.

Switch Between Update Modes for an Updatable Transactional Subscription
System Stored Procedures (Transact-SQL)

Community Additions

ADD
Show: