How to check SQL Server version
What are the possible ways to determine the deployed SQL Server version?
I’ve tried to do it using the SQL Server software. I want to do it using a command line SQL statement.