December 23, 2002 04:23 PM

Turn to Profiler First

Rating: (0)
SQL Server Magazine
InstantDoc ID #27506

How can I use T-SQL to programmatically determine the number of processors that my SQL Server machine has?

The following command will return the information you need:

EXEC master..xp_msver N'ProcessorCount',
 N'ProcessorType'
However, I'm a big fan of teaching people how to fish instead of giving them a plate of frozen fish sticks, so I can't possibly stop with that simple answer. When a colleague recently asked me this question, I didn't remember the name of ...

...This article is for paid Professional Members only.

Already a Professional Member? Please log in now:

NOT A PROFESSIONAL MEMBER? YOU CHOOSE:

Professional Membership

Monthly

Annual

VIP Membership

Monthly

Annual

Add a Comment

There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here