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)

public enum SqlServerVersion

Member nameDescription
Version80SQL Server 2000.
Version90SQL Server 2005.
Version100SQL Server 2008.
Version105SQL Server 2008 R2.

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

Community Additions