Condividi tramite


Metodo GetServerName

Ottiene il nome dell'istanza di SQL Server a cui è associato l'oggetto.

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

Sintassi

'Dichiarazione
Protected Overridable Function GetServerName As String
'Utilizzo
Dim returnValue As String

returnValue = Me.GetServerName()
protected virtual string GetServerName()
protected:
virtual String^ GetServerName()
abstract GetServerName : unit -> string 
override GetServerName : unit -> string 
protected function GetServerName() : String

Valore restituito

Tipo: System. . :: . .String
Valore String che specifica il nome dell'istanza di SQL Server.