‎06-23-2014 11:53 PM
Select Distinct Top 1000000 tblAssets.AssetID,
tblAssets.AssetUnique,
tblAssets.IPAddress,
tsysIPLocations.IPLocation,
tblAssets.Domain,
VirtualMachine = Case tblAssetCustom.Model
When 'VMware Virtual Platform' Then 'YES' When 'Virtual Machine' Then 'YES'
Else 'NO' End,
tsysOS.OSname As 'Operating System',
tblADComputers.Description As 'AD Description',
tsysOS.Image As icon,
tblAssets.NrProcessors As [# Processors],
tblPROCESSOR.NumberOfCores * tblAssets.NrProcessors As [# Total Cores],
tblSqlServers.displayVersion As [SQL Version],
tblSqlServers.skuName As [SQL Edition]
From tblComputersystem
Inner Join tblAssets On tblComputersystem.AssetID = tblAssets.AssetID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Left Outer Join tsysIPLocations On tblAssets.IPNumeric >=
tsysIPLocations.StartIP And tblAssets.IPNumeric <= tsysIPLocations.EndIP
Inner Join tblPROCESSOR On tblAssets.AssetID = tblPROCESSOR.AssetID
Inner Join tblSqlServers On tblAssets.AssetID = tblSqlServers.AssetID
Left Join tblADComputers On tblAssets.AssetID = tblADComputers.AssetID
Where tblComputersystem.Domainrole > 1 And tblAssetCustom.State = 1
Order By tblAssets.AssetUnique
Solved! Go to Solution.
‎06-24-2014 01:24 PM
‎06-24-2014 01:24 PM
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now