Condividi tramite


Proprietà ServerName

Gets the name of the server on which the batch was executed.

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

Sintassi

'Dichiarazione
ReadOnly Property ServerName As String
    Get
'Utilizzo
Dim instance As IResultInfo
Dim value As String

value = instance.ServerName
string ServerName { get; }
property String^ ServerName {
    String^ get ();
}
abstract ServerName : string
function get ServerName () : String

Valore proprietà

Tipo: System. . :: . .String
A String that contains the name of the server.