Alright!
So I'll post this in the reports section later, but for now hope this helps! It will only list Software you have configured in the Licensing section. The Order Numbers and License Keys are included, so they will show up as a separate line item, even if the Software titles are the same. Product keys found on clients are only joined in, if they match the License Key in your purchase order. Finally you will now be able to view totals seats used by each license key compared to the amount purchased.
License: Software licensekey usage ()Select Top 1000000 tblLicenses.softwareName,
tblSublicensesOrders.Ordernumber,
Count(tblSerialnumber.ProductKey) As [In Use],
tblSublicensesOrders.Nrlicenses Purchased,
Cast(tblSublicensesOrders.Licensekey As nvarchar(max)) As [License Key]
From tblLicenses
Inner Join tblSublicensesOrders On tblLicenses.LicenseidID =
tblSublicensesOrders.LicenseidID
Inner Join tblSerialnumber On tblSerialnumber.ProductKey =
Cast(tblSublicensesOrders.Licensekey As nvarchar(max))
Group By tblLicenses.softwareName,
tblSublicensesOrders.Ordernumber,
tblSublicensesOrders.Nrlicenses,
Cast(tblSublicensesOrders.Licensekey As nvarchar(max))
Thank you,
Jeffrey
Thank you,
Jeffrey Smith
Enterprise Applications Security
(319) 499-6310
JefSmith@geico.com