checking the version of ms sql server code example Example: sql server check version SELECT @@version