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