how to check what version of sql server is running code example Example: sql server check version SELECT @@version