Dela via


SqlServerVersion Enumeration

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

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Enumeration SqlServerVersion
'Usage
Dim instance As SqlServerVersion
public enum SqlServerVersion
public enum class SqlServerVersion
type SqlServerVersion
public enum SqlServerVersion

Members

Member name Description
Version80 SQL Server 2000.
Version90 SQL Server 2005.
Version100 SQL Server 2008.
Version105 SQL Server 2008 R2.

Remarks

The SqlServerVersion enumeration class is served by the PingSqlServerVersion method and the GetSqlServerVersionName method.