// if u use sql cli https://github.com/dbcli/mssql-cli //conect to server mssql-cli -S <server URL> -d <database name> -U <username> -P <password> //select the version from the server Select @@version