Condividi tramite


ReplicationServer.GetOriginalPublisher Method

Returns the name of the originating Publisher for a published database participating in a database mirroring session.

Spazio dei nomi: Microsoft.SqlServer.Replication
Assembly : Microsoft.SqlServer.Rmo (in microsoft.sqlserver.rmo.dll)

Sintassi

'Dichiarazione
Public Function GetOriginalPublisher ( _
    dbName As String _
) As String
public string GetOriginalPublisher (
    string dbName
)
public:
String^ GetOriginalPublisher (
    String^ dbName
)
public String GetOriginalPublisher (
    String dbName
)
public function GetOriginalPublisher (
    dbName : String
) : String

Parametri

  • dbName
    Name of a published database that participates in database mirroring.

Valore restituito

A String value.

Osservazioni

This method is used to support replication with database mirroring. For more information, see Replica e mirroring del database.

The GetOriginalPublisher method is executed at the Publisher.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Piattaforme

Piattaforme di sviluppo

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Piattaforme di destinazione

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Vedere anche

Riferimento

ReplicationServer Class
ReplicationServer Members
Microsoft.SqlServer.Replication Namespace