Returns version information about Microsoft SQL Server. xp_msver also returns information about the actual build number of the server and information about the server environment. The information that xp_msver returns can be used within Transact-SQL statements, batches, stored procedures, and so on, to enhance logic for platform-independent code.
Is the name of an option, and can be one of the following values.
Option/Column name Description
Product name; for example, Microsoft SQL Server.
The language version of SQL Server.
Operating-system name, manufacturer name, and chip family name for the computer that is running SQL Server.
Miscellaneous information about SQL Server.
Company name that produces SQL Server; for example, Microsoft Corporation.
The operating system.
Version of the SQL Server executable.
Microsoft internal name for SQL Server; for example, SQLSERVR.
Legal copyright information required for SQL Server; for example, Copyright© Microsoft Corp. 1988-2005.
Legal trademark information required for SQL Server. For example, Microsoft is a registered trademark of Microsoft Corporation.
File name executed at SQL Server startup; for example, Sqlservr.exe.
Version of Microsoft Windows that is installed on the computer that is running SQL Server.
The number of processors in the computer that is running SQL Server.
Indicates the processors installed in the computer that is running SQL Server that are started and usable by Microsoft Windows.
Processor type. Similar to Platform.
Amount in megabytes (MB) of RAM installed on the computer that is running SQL Server.
Product ID (PID) number. This is specified during installation. This number is located on a sticker on the original SQL Server CD case.