Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

Adding collection parameter in SCCM report results in all systems every time

$
0
0

Hello! Hopefully this is in the right sub-forum.

I'm a complete dunce with SQL, yet i've managed to somehow hack together something that mostly works. However I really do need the collection parameter to work with this guy. So here's my query:

Text
SELECT SYS.description0, Netbios_Name0, User_Name0, v_GS_COMPUTER_SYSTEM.Manufacturer0, v_GS_COMPUTER_SYSTEM.Model0, v_GS_OPERATING_SYSTEM.Caption0, v_GS_SYSTEM_ENCLOSURE.SerialNumber0, v_GS_OPERATING_SYSTEM.InstallDate0, v_GS_OPERATING_SYSTEM.LastBootUpTime0, Last_Logon_Timestamp0 FROM v_GS_COMPUTER_SYSTEM JOIN v_R_System SYS ON SYS.ResourceID = v_GS_COMPUTER_SYSTEM.ResourceID LEFT JOIN v_GS_SYSTEM_ENCLOSURE ON SYS.ResourceID = v_GS_SYSTEM_ENCLOSURE.ResourceID LEFT JOIN v_GS_OPERATING_SYSTEM ON v_GS_SYSTEM_ENCLOSURE.ResourceID = v_GS_OPERATING_SYSTEM.ResourceID 

Seems to work fine by...


Viewing all articles
Browse latest Browse all 4871

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>