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