I'm only manage to create an individual solution report using
DECLARE @Product AS NVARCHAR (200)
--Enter the guid of the solution or its name.
--If it is only part of the guid or name make sure to use % symbals as needed.
SET @Product = 'Altiris Patch Management Solution'
SELECT vp.Name, vc.Name, vc.Domain, liu.*
FROM LicenseInUse liu
JOIN vProduct vp ON vp.Guid = liu.LicensingPolicyGuid
JOIN vComputer vc ON vc.Guid = liu.ResourceGuid
WHERE vp.Name LIKE @Product OR vp.Guid LIKE @Product
ORDER BY vp.Name, vc.Name
but how can i create a SQL report like table below
Name |
OSName |
Inventory Solution |
Patch Management Solution |
Software Management Solution |
Computer1 |
Windows 7 |
Yes |
Yes |
Yes |
Computer2 |
Windows 7 |
Yes |
Yes |
Yes |
Computer3 |
Windows 7 |
Yes |
Yes |
Yes |
Computer4 |
Windows Server 2008 |
Yes |
No |
No |
Computer5 |
Mac OS X |
Yes |
No |
No |
Computer6 |
Windows 7 |
Yes |
Yes |
Yes |
Computer7 |
Windows 7 |
Yes |
Yes |
Yes |