→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !
‎08-24-2016 06:10 PM
‎08-30-2016 09:02 PM
‎08-30-2016 08:48 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetUnique,
tsysOS.OSname,
tblAssets.Description,
tblDiskdrives.Caption,
Cast((Cast(tblDiskdrives.Freespace As DECIMAL) / Cast(tblDiskdrives.Size As
DECIMAL) * 100) As DECIMAL(18,2)) As TotalPercentFree,
Cast(Cast(tblDiskdrives.Freespace As DECIMAL) / 1024 / 1024 / 1024 As
DECIMAL(18,2)) As FreeGB,
Cast(Cast(tblDiskdrives.Size As DECIMAL) / 1024 / 1024 / 1024 As
DECIMAL(18,2)) As TotalSizeGB,
tblDiskdrives.Lastchanged As [Last Changed],
tsysOS.Image As icon
From tblAssets
Inner Join tblDiskdrives On tblAssets.AssetID = tblDiskdrives.AssetID
Inner Join tblOperatingsystem
On tblAssets.AssetID = tblOperatingsystem.AssetID
Inner Join tblComputersystem On tblAssets.AssetID = tblComputersystem.AssetID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Where Cast(Cast(tblDiskdrives.Size As BIGINT) / 1024 / 1024 As NUMERIC) <> 0 And
tblComputersystem.Domainrole > 2 And tblDiskdrives.DriveType = 3 And
tblAssetCustom.State = 1
Order By tblAssets.AssetName,
tblDiskdrives.Caption
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now