SQL Server administration and T-SQL development, Web Programming with ASP.NET, HTML5 and Javascript, Windows Phone 8 app development, SAP Smartforms and ABAP Programming, Windows 7, Visual Studio and MS Office software
Development resources, articles, tutorials, code samples, tools and downloads for ASP.Net, SQL Server, Reporting Services, T-SQL, Windows, AWS, SAP HANA and ABAP


MSSQLServer sp_MSgetversion Extended Stored Procedure


MS SQL Server sp_MSgetversion is an extended stored procedure which will successfully work on MSSQLServer 2000, SQL Server 2005 and even on Microsoft SQL Server 2008.
SQL developers or SQL Server database administrators can use sp_MSgetversion extended stored procedure in order to get the current Microsoft SQL Server instance version.

For displaying the MS SQL Server version by sp_MSgetversion extended stored procedure, simply execute the proc by :

EXEC master..sp_MSgetversion
Code

sp_MSgetversion undocumented extended stored procedure





Since sp_MSgetversion is an undocumented extended stored procedure it is not supported by Microsoft.
So for a safe use in production environments you can prefer other methods for retrieving the SQL Server version by t-sql code.


@@VERSION

You can retrieve the related installed SQL Server version by selecting the @@VERSION property.

SELECT @@VERSION
Code

@@VERSION for MS SQL Server version


ProductVersion SERVERPROPERTY

Or you can read the ProductVersion property to retrieve the current MSSQLServer instance in the form of 'major.minor.build' number.

SELECT SERVERPROPERTY('ProductVersion')
Code

ProductVersion ServerProperty for SQL Server version



SQL Server

SQL Server 2019 Installation
download SQL Server 2019
download SQL Server 2017
download SQL Server 2016
download SQL Server 2014
download SQL Server 2012
MacOS ve SQL Server 2019


Copyright © 2004 - 2021 Eralper YILMAZ. All rights reserved.