how to know what version of sql server is installed code example
Example 1: sql server check version
SELECT @@version
Example 2: how to know the sql server edition
SELECT SERVERPROPERTY('productversion'), SERVERPROPERTY ('productlevel'), SERVERPROPERTY ('edition')