how to know the sql server edition
snippet in sql

sql version query

user2783

SELECT @@VERSION AS 'SQL Server Version';  

how to know the sql server edition

user4837

SELECT SERVERPROPERTY('productversion'), SERVERPROPERTY ('productlevel'), SERVERPROPERTY ('edition')