Write the below query
SELECT @@Version AS 'SQL Server Version'
sql query