ReplicationServer.GetCurrentPrincipal 메서드

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

네임스페이스:  Microsoft.SqlServer.Replication
어셈블리:  Microsoft.SqlServer.Rmo(Microsoft.SqlServer.Rmo.dll)

public string GetCurrentPrincipal(
	string dbName

매개 변수

유형: System.String
Name of a published database that participates in database mirroring.

반환 값

유형: System.String
A String value.

This method is used to support replication with database mirroring. For more information, see 데이터베이스 미러링 및 복제(SQL Server).

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