?--===================================================
--查看CPU配置
SELECT
cpu_count AS [Logical CPU Count],
hyperthread_ratio AS [Hyperthread
Ratio],
cpu_count/hyperthread_ratio AS [Physical CPU Count]
FROM
sys.dm_os_sys_info
原文:http://www.cnblogs.com/TeyGao/p/3524186.html