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