Database
-: How to identify your SQL Server version and edition :-
This is the generic query that works on SQL 2005 and 2008. For detailed version-specific information, visit the link below.
SELECT SERVERPROPERTY('productversion'), SERVERPROPERTY ('productlevel'), SERVERPROPERTY ('edition').
For more details, see How_to_determine_SQL_version.asp
For more information, refer http://support.microsoft.com/kb/321185