jnelson993
Posts: 899
Score: 127 Joined: 2/18/2005 From: Minneapolis, MN Status: offline
|
One little caveat, that view is for 32-bit machines only. If you have any x64 machines, they won't be represented by that view...that's why the dbo.v_Add_Remove_Programs view is handy. So perhaps, just do this to get the 32-bit AND 64-bit data together SELECT arp.ProdID0, arp.DisplayName0, arp.Version0 FROM dbo.v_GS_Add_Remove_Programs ARP WHERE arp.resourceID IN (SELECT ResourceID FROM dbo.v_FullCollectionMembership WHERE CollectionID = @CollectionID) UNION SELECT arp.prodID0, arp.DisplayName0, arp.Version0 FROM dbo.v_GS_Add_Remove_Programs_64 arp WHERE arp.resourceID IN (SELECT ResourceID FROM dbo.v_FullCollectionMembership WHERE CollectionID = @CollectionID) ORDER BY DisplayName0
_____________________________
Number2 (John Nelson) MyITForum - Blog MyITForum - Forum Posts
|