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.