Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Logical + Physical CPU counts..

Author  Topic 

Jake Shelton
Yak Posting Veteran

74 Posts

Posted - 2011-11-12 : 12:31:12
Anyone know a statement to yield how many of both there are on a an SS2K server?

Thanks,


Jim

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-11-12 : 12:45:28
see

http://social.msdn.microsoft.com/Forums/en-US/sqldatabaseengine/thread/1daad21c-18b5-4785-a0a9-97533324b28b/

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

vikki.seth
Yak Posting Veteran

66 Posts

Posted - 2011-11-12 : 16:07:36
From within SQL Server, you can query sys.dm_os_sys_info
cpu_count will give the number of logical processors(cores).
However, when hyperthreading is enabled, you wont get correct numbers. Better to check with windows admin.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-11-13 : 11:55:01
quote:
Originally posted by vikki.seth

From within SQL Server, you can query sys.dm_os_sys_info
cpu_count will give the number of logical processors(cores).
However, when hyperthreading is enabled, you wont get correct numbers. Better to check with windows admin.



sys.dm_os_sys_info is available only from SQL 2005 onwards

OPs question was a way to implement it in sql 2000

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

Jake Shelton
Yak Posting Veteran

74 Posts

Posted - 2011-11-13 : 15:25:58
Many thanks, Visakh!!
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-11-13 : 23:44:42
wc

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -