Condividi tramite


Proprietà ServerEventArgs.SqlInstance

Gets the instance of SQL Server on which the event occurred.

Spazio dei nomi  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

'Dichiarazione
Public ReadOnly Property SqlInstance As String 
    Get
'Utilizzo
Dim instance As ServerEventArgs 
Dim value As String 

value = instance.SqlInstance
public string SqlInstance { get; }
public:
property String^ SqlInstance {
    String^ get ();
}
member SqlInstance : string
function get SqlInstance () : String

Valore proprietà

Tipo: System.String
A String value that specifies the name of the instance of SQL Server on which the event occurred.

Esempi

Gestione degli eventi SMO

Vedere anche

Riferimento

ServerEventArgs Classe

Spazio dei nomi Microsoft.SqlServer.Management.Smo