共用方式為


GetSqlServerVersionName 方法

Gets the version 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 Function GetSqlServerVersionName As String
'用途
Dim returnValue As String

returnValue = Me.GetSqlServerVersionName()
protected string GetSqlServerVersionName()
protected:
String^ GetSqlServerVersionName()
member GetSqlServerVersionName : unit -> string 
protected function GetSqlServerVersionName() : String

傳回值

型別:System. . :: . .String
A String value that specifies the version name of the instance of SQL Server.

範例

呼叫方法