Поделиться через


Метод SqlSmoObject.GetServerName

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

Пространство имен:  Microsoft.SqlServer.Management.Smo
Сборка:  Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)

Синтаксис

'Декларация
Protected Overridable Function GetServerName As String
'Применение
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

Возвращаемое значение

Тип: System.String
A String value that specifies the name of the instance of SQL Server.

Примеры

Вызов методов

См. также

Справочник

SqlSmoObject Класс

Пространство имен Microsoft.SqlServer.Management.Smo