how to check version of sql server by command code example Example: sql server check version SELECT @@version