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