The answer is given by the DMV "sys.dm_os_schedulers"
SELECT MAX([cpu_id]) + 1 AS [cpu_count]
FROM [master].[sys].[dm_os_schedulers];
I could use WMI and the Win32_Processor class (MSDN Library), but I don't always have the necessary rights to read the value remote.
No comments:
Post a Comment