First day of 2021 and the first blog post….
In situations where you don’t have Microsoft SQL Server Management Studio available or if you just like to use command prompt you can use the command sqlcmd to manage and view your Microsoft SQL Server.
If you have multiple MSSQL Instances installed there will be one line called SQL Server (Instance Name) per MSSQL Server Instance.
Now let’s check out how to find the MSSQL version via command prompt
- Open a command prompt via e.g. Run
- type the following command “sqlcmd -s hostname\mssql_instance” where server name is the name of your server, and instancen name is the name of the SQL instance.
- type “select @@version”
- type “go”
The you go and the result will obviously vary based on your specific MSSQL version.