Freigeben über


Database.MirroringPartnerInstance-Eigenschaft

Gets the instance of SQL Server on which the mirroring partner is configured.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property MirroringPartnerInstance As String 
    Get
'Usage
Dim instance As Database 
Dim value As String 

value = instance.MirroringPartnerInstance
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public string MirroringPartnerInstance { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property String^ MirroringPartnerInstance {
    String^ get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member MirroringPartnerInstance : string
function get MirroringPartnerInstance () : String

Eigenschaftswert

Typ: System.String
A String value that specifies the instance of SQL Server.

Beispiele

Arbeiten mit Datenbankobjekten

Siehe auch

Verweis

Database Klasse

Microsoft.SqlServer.Management.Smo-Namespace

Andere Ressourcen

Verwaltung der Datenbankspiegelung

Implementieren von Endpunkten

Erstellen, Ändern und Löschen von Datenbanken

CREATE DATABASE (Transact-SQL)