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