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