Jump to content


  • 0
pvr02

32 vs 64 Bit Report (Count Wrong)

Question

I found this code on this site, but when I run it I get more computers than I have in my environment. From playing around, I did notice I have duplicate resourceid's in the v_gs_processor table. I believe this is what is throwing my numbers off. Any ideas?

SELECT pr.datawidth0 [Processor bits]
, pr.addresswidth0 [OS bits]
, sys.Operating_system_Name_and0 [OS Name]
,COUNT(sys.resourceid) [Computers]
FROM v_r_system sys JOIN v_gs_processor pr ON sys.resourceid=pr.resourceid
GROUP BY pr.datawidth0, pr.addresswidth0, sys.Operating_system_Name_and0
ORDER BY pr.datawidth0, pr.addresswidth0, sys.Operating_system_Name_and0

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.