how to check sql server version in cmd code example Example: sql server check version SELECT @@version