ReplicationServer.GetCurrentPrincipal(String) ReplicationServer.GetCurrentPrincipal(String) ReplicationServer.GetCurrentPrincipal(String) Method

Definition

Returns the current database mirroring principal for the specified publication database.

public:
 System::String ^ GetCurrentPrincipal(System::String ^ dbName);
public string GetCurrentPrincipal (string dbName);
Public Function GetCurrentPrincipal (dbName As String) As String

Parameters

dbName
String String String

Name of a published database that participates in database mirroring.

Returns

Remarks

This method is used to support replication with database mirroring. For more information, see Database Mirroring and Replication (SQL Server).

If the database specified for dbName does not participate in database mirroring, an empty string is returned.

Applies to