SqlServerVersion SqlServerVersion SqlServerVersion Enum


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

public enum class SqlServerVersion
public enum SqlServerVersion
Public Enum SqlServerVersion


Version100 Version100 Version100 3

SQL Server 2008.

Version105 Version105 Version105 4

SQL Server 2008 R2.

Version110 Version110 Version110 5

SQL Server 2012.

Version120 Version120 Version120 6

The version is Version120.

Version130 Version130 Version130 7

The version is Version130.

Version80 Version80 Version80 1

No longer used.

Version90 Version90 Version90 2

SQL Server 2005.


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

Applies to