ReplicationServer.GetCurrentPrincipal Method
SQL Server 2008
Returns the current database mirroring principal for the specified publication database.
Assembly: Microsoft.SqlServer.Rmo (in Microsoft.SqlServer.Rmo.dll)
Parameters
- dbName
- Type: System.String
Name of a published database that participates in database mirroring.
This method is used to support replication with database mirroring. For more information, see Replication and Database Mirroring.
If the database specified for dbName does not participate in database mirroring, an empty string is returned.