Welcome to MSDN Blogs Sign in | Join | Help

Script of the Day - Find the Cores on a System

Sure, you can get the number of processors fairly easily ffrom SQL Server. But did you know you can also get the number of actual cores as well? This little gem works with SQL Server 2005:

SELECT  cpu_count/hyperthread_ratio AS sockets

FROM sys.dm_os_sys_info;
GO 

 

Published Monday, August 13, 2007 7:16 PM by Buck Woody

Comments

# MSDN Blog Postings » Script of the Day - Find the Cores on a System

# MSDN Blog Postings » Script of the Day - Find the Cores on a System

Saturday, December 08, 2007 6:56 PM by Kalen Delaney

# Geek City: HyperThreaded or Not?

In almost all my classes, and every time I do any performance consulting, I get the question "How can

Saturday, December 08, 2007 7:09 PM by Kalen Delaney

# Geek City: HyperThreaded or Not?

In almost all my classes, and every time I do any performance consulting, I get the question "How can

Anonymous comments are disabled
 
Page view tracker