ADMIN_MajorServerVersion

Show allHide all

Deprecated. Don't use for new development and try to migrate existing uses.

Type: Scalar function

Returns the version of SQL-Server that is running.

Return value: int

7 - Sql Server 7.0
8 - Sql Server 2000
9 - Sql Server 2005
10 - Sql Server 2008