mseely
Posts: 6
Score: 0 Joined: 5/4/2008 Status: offline
|
V_FullCollectionMembership has the name of the system, but not the name of the Collection. V_Collection has the name of the Collection, but not the name of the System So, neither view by itself will give us what we are looking for. But - both Views have the CollectionID of the collection ... so, by joining the 2 views using CollectionID, we get: Select col.name from v_fullcollectionmembership fcm join v_collection col on fcm.collectionid=col.collectionid where fcm.name = 'ComputerName' which will return the collection names that 'ComputerName' is part of.
|