Метод ReplicationServer.GetOriginalPublisher
Returns the name of the originating Publisher for a published database participating in a database mirroring session.
Пространство имен: Microsoft.SqlServer.Replication
Сборка: Microsoft.SqlServer.Rmo (в Microsoft.SqlServer.Rmo.dll)
Синтаксис
'Декларация
Public Function GetOriginalPublisher ( _
dbName As String _
) As String
'Применение
Dim instance As ReplicationServer
Dim dbName As String
Dim returnValue As String
returnValue = instance.GetOriginalPublisher(dbName)
public string GetOriginalPublisher(
string dbName
)
public:
String^ GetOriginalPublisher(
String^ dbName
)
member GetOriginalPublisher :
dbName:string -> string
public function GetOriginalPublisher(
dbName : String
) : 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).
The GetOriginalPublisher method is executed at the Publisher.