GetServerName Método

Gets the name of the instance of SQL Server with which the object is associated.

Espacio de nombres:  Microsoft.SqlServer.Management.Smo
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
Protected Overridable Function GetServerName As String
'Uso
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

Valor devuelto

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