→ 🚀Are you a Lansweeper Champion?! Join our Contributor Program Sign up here!

Community FAQ
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
skruser
Engaged Sweeper
I'm needing to create a SQL report that displays the following.

Assetname
Domain
OSname
Edition
License
Number of Processors
Number of Cores
Last Tried
Last Changed

Before when I tried creating and running a custom report and included the license, it would error out and tell me no results were found.

Thanks!

skruser
1 ACCEPTED SOLUTION
Hemoco
Lansweeper Alumni
Please use the following report:

Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tsysOS.OSname,
tblSqlServers.displayVersion,
tblAssets.Lasttried,
tblAssetCustom.Lastchanged,
tblAssets.NrProcessors,
Sum(tblProcessor.NumberOfCores) As [nr of cores],
tblSqlLicenses.Name As license
From tblAssets
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Inner Join tblSqlServers On tblAssets.AssetID = tblSqlServers.AssetID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tblProcessor On tblAssets.AssetID = tblProcessor.AssetID
Left Join tblSqlSubServers On tblAssets.AssetName = tblSqlSubServers.AssetName
Left Join tblSqlLicenses On tblSqlLicenses.LicenseID =
tblSqlSubServers.LicenseID
Group By tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tsysOS.OSname,
tblSqlServers.displayVersion,
tblAssets.Lasttried,
tblAssetCustom.Lastchanged,
tblAssets.NrProcessors,
tblSqlLicenses.Name

View solution in original post

1 REPLY 1
Hemoco
Lansweeper Alumni
Please use the following report:

Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tsysOS.OSname,
tblSqlServers.displayVersion,
tblAssets.Lasttried,
tblAssetCustom.Lastchanged,
tblAssets.NrProcessors,
Sum(tblProcessor.NumberOfCores) As [nr of cores],
tblSqlLicenses.Name As license
From tblAssets
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Inner Join tblSqlServers On tblAssets.AssetID = tblSqlServers.AssetID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tblProcessor On tblAssets.AssetID = tblProcessor.AssetID
Left Join tblSqlSubServers On tblAssets.AssetName = tblSqlSubServers.AssetName
Left Join tblSqlLicenses On tblSqlLicenses.LicenseID =
tblSqlSubServers.LicenseID
Group By tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tsysOS.OSname,
tblSqlServers.displayVersion,
tblAssets.Lasttried,
tblAssetCustom.Lastchanged,
tblAssets.NrProcessors,
tblSqlLicenses.Name

Reports & Analytics

Ask about reports you're interested in and share reports you've created. Subscribe to receive daily updates of reports shared in the Community.

New to Lansweeper?

Try Lansweeper For Free

Experience Lansweeper with your own data.
Sign up now for a 14-day free trial.

Try Now