SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Logical + Physical CPU counts..
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Jake Shelton
Yak Posting Veteran

74 Posts

Posted - 11/12/2011 :  12:31:12  Show Profile  Reply with Quote
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

India
52317 Posts

Posted - 11/12/2011 :  12:45:28  Show Profile  Reply with Quote
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 - 11/12/2011 :  16:07:36  Show Profile  Reply with Quote
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

India
52317 Posts

Posted - 11/13/2011 :  11:55:01  Show Profile  Reply with Quote
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 - 11/13/2011 :  15:25:58  Show Profile  Reply with Quote
Many thanks, Visakh!!
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 11/13/2011 :  23:44:42  Show Profile  Reply with Quote
wc

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

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000