共用方式為


SqlServerVersions 列舉

The SqlServerVersions enumeration contains values that are used to specify the version of the referenced instance of SQL Server.

此列舉有一個允許其成員值為位元組合的 FlagsAttribute 屬性。

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<FlagsAttribute> _
Public Enumeration SqlServerVersions
'用途
Dim instance As SqlServerVersions
[FlagsAttribute]
public enum SqlServerVersions
[FlagsAttribute]
public enum class SqlServerVersions
[<FlagsAttribute>]
type SqlServerVersions
public enum SqlServerVersions

成員

成員名稱 說明
Unknown The version of SQL Server is unknown.
Version70 The version of SQL Server is SQL Server 7.0.
Version80 The version of SQL Server is SQL Server 2000.
Version90 The version of SQL Server is SQL Server 2005. 
Version100 The version of SQL Server is SQL Server 2008.
Version105 The version of SQL Server is SQL Server 2008 R2.

備註

The SqlServerVersions enumeration class is served by the EnumPropertyInfo method.