Export (0) Print
Expand All

ReplicationDatabase.ReadSubscriptionFailoverMode Method

Returns the failover mode for an updating subscription to a transactional or snapshot publication.

Namespace:  Microsoft.SqlServer.Replication
Assembly:  Microsoft.SqlServer.Rmo (in Microsoft.SqlServer.Rmo.dll)

public FailoverMode ReadSubscriptionFailoverMode(
	string publisher,
	string publicationDB,
	string publication
)

Parameters

publisher
Type: String
A String value that specifies the Publisher.
publicationDB
Type: String
A String value that specifies the publication database.
publication
Type: String
A String value that specifies the publication.

The ReadSubscriptionFailOverMode(String, String, String) method can only be called by members of the sysadmin fixed server role and members of the db_owner fixed database role.

Calling ReadSubscriptionFailOverMode(String, String, String) is equivalent to executing sp_helpreplfailovermode (Transact-SQL).

Community Additions

ADD
Show:
© 2014 Microsoft