SQL Server Version Constants (SQLDMO_SQL_VER)
This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.
SQL Server version constants identify the version of an instance of Microsoft Server, directing behavior of the PingSQLServerVersion method of the SQLServer object.
Constant |
Value |
Description |
|---|---|---|
SQLDMOSQLVer_60 |
2 |
SQL Server version 6.0 |
SQLDMOSQLVer_65 |
4 |
SQL Server version 6.5 |
SQLDMOSQLVer_70 |
8 |
SQL Server version 7.0 |
SQLDMOSQLVer_80 |
16 |
SQL Server 2000 |
SQLDMOSQLVer_90 |
SQL Server 2005 |
|
SQLDMOSQLVer_Pre_60 |
1 |
SQL Server 6.0 or earlier |
SQLDMOSQLVer_Unknown |
0 |
Value not valid |