Jump to content


dambrosioj

Limit SQL Report to a Collection

Recommended Posts

I created this report to look for driver versions on our network after I edited the .mof file to look for it and everything seems to be pulling in great but I want to be able to limit this to a collection. Does anyone know how I can add that to this report.

 

 

 

 

SELECT
v_GS_NETWORK_DRIVERS.ResourceID
,v_GS_NETWORK_DRIVERS.DriverDate0
,v_GS_NETWORK_DRIVERS.DriverDesc0
,v_GS_NETWORK_DRIVERS.DriverVersion0
,v_GS_NETWORK_DRIVERS.WakeOnMagicPacket0
,v_GS_NETWORK_DRIVERS.RemoteWakeEnable0
,v_GS_NETWORK_DRIVERS.ProviderName0
,v_GS_NETWORK_DRIVERS.MediaType0
,v_GS_SYSTEM.Name0
FROM
v_GS_SYSTEM
INNER JOIN v_GS_NETWORK_DRIVERS
ON v_GS_SYSTEM.ResourceID = v_GS_NETWORK_DRIVERS.ResourceID

 

 

Thanks!

 

Share this post


Link to post
Share on other sites

Thanks! I think I got it. Could you possibly help me add the model of the computer and PC Bios Version to this report?

 

SELECT
v_GS_NETWORK_DRIVERS.ResourceID
,v_GS_NETWORK_DRIVERS.DriverDate0
,v_GS_NETWORK_DRIVERS.DriverDesc0
,v_GS_NETWORK_DRIVERS.DriverVersion0
,v_GS_NETWORK_DRIVERS.WakeOnMagicPacket0
,v_GS_NETWORK_DRIVERS.RemoteWakeEnable0
,v_GS_NETWORK_DRIVERS.ProviderName0
,v_GS_NETWORK_DRIVERS.MediaType0
,v_GS_SYSTEM.Name0
FROM
v_GS_SYSTEM
INNER JOIN
v_FullCollectionMembership ON v_GS_SYSTEM.ResourceID = v_FullCollectionMembership.ResourceID
INNER JOIN v_GS_NETWORK_DRIVERS
ON v_GS_SYSTEM.ResourceID = v_GS_NETWORK_DRIVERS.ResourceID
WHERE (v_FullCollectionMembership.CollectionID = @collid )

Share this post


Link to post
Share on other sites

Join the conversation

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

Guest
Reply to this topic...

×   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.