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