Check SQL Server version

C:\Program Files\Microsoft SQL Server\90\Tools\Binn\osql -E
1> SELECT @@VERSION
2> GO