Obtendo a versão do SQL Server

SELECT serverproperty(‘productlevel’)
SELECT serverproperty(‘productversion’)
SELECT serverproperty(‘edition’)