Client Management Suite

 View Only

Collection Comparison Tool 

May 11, 2009 03:24 PM

Here is the base of a report I’ve written that allows you to quickly identify systems that are members of two collections. This can be useful in identifying a list of systems that someone may be inquiring about being in a very large collection.

What I do is take the system list provided, create a temporary collection with some relevant name and import the list of computers. Then I use this utility to compare one vs. the other.

The base SQL looks like this:


Select *

From vcomputer v

WHERE

v.[guid] in
(
Select ResourceGuid
From CollectionMembership
Where CollectionGuid = '%collectionA%'
)
AND

v.[guid] in
(
Select ResourceGuid
From CollectionMembership
Where CollectionGuid = '%collectionB%'
)


ORDER BY
v.[Name]


Then you need to just create two global parameters named collectionA and collectionB. I use item pickers with collection filters and that’s basically it.

This SQL is also attached below.




Statistics
0 Favorited
0 Views
1 Files
0 Shares
0 Downloads
Attachment(s)
txt file
comparison_tool.txt   284 B   1 version
Uploaded - Feb 25, 2020

Tags and Keywords

Related Entries and Links

No Related Resource entered.