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