how to see sql server versions code example Example: sql version query SELECT @@VERSION AS 'SQL Server Version';