I'm using SQL Server and I need a SQL query which returns the year of the version.
I'm familiar with the next methods:
select @@version
select SERVERPROPERTY('productversion')
but I need a query that will return for example:
2008
or
2005
The first query I mentioned requires dirty parsing and the second returns some product number.
Do anyone knows such a query?
Thanks!