How do I get only the SQL Server release version?
select @@version
retrieves the full information, in my case :
Microsoft SQL Server 2008 R2 (RTM) - 10.50.1617.0 (X64) Apr 22 2011 19:23:43 Copyright (c) Microsoft Corporation Developer Edition (64-bit) on Windows NT 6.1 (Build 7601: Service Pack 1)
I need only Microsoft SQL Server 2008 R2
.
Suggestions?