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