→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !
‎06-17-2013 09:41 AM
Solved! Go to Solution.
‎06-17-2013 04:33 PM
Select Top 1000000 tsysOS.Image As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.IPAddress,
tblAssets.Firstseen,
tblAssets.Lastseen,
tblDiskdrives.Caption As [Disk],
Ceiling(tblDiskdrives.Freespace / 1024 / 1024) As FreeMB,
Ceiling(tblDiskdrives.Size / 1024 / 1024) As TotalMB
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Inner Join tblDiskdrives On tblAssets.AssetID = tblDiskdrives.AssetID
Where tblDiskdrives.Caption Like '%c%' And Ceiling(tblDiskdrives.Size / 1024 /
1024) <> 0 And tblAssetCustom.State = 1 And tblDiskdrives.DriveType = 3
Order By tblAssets.Domain,
tblAssets.AssetName,
[Disk]
‎02-21-2019 06:48 PM
WHERE
tblDiskdrives.Caption Like '%c%' -- drive caption contains "C" (caption is C:, D:, etc.)
AND Ceiling(tblDiskdrives.Freespace / 1024 / 1024) < 1024 -- free space < 1024 MB (aka 1 GB)
AND Ceiling(tblDiskdrives.Size / 1024 / 1024) <> 0 -- drive is not empty
AND tblAssetCustom.State = 1 -- asset is active
AND tblDiskdrives.DriveType = 3 -- local disk drive
‎02-21-2019 06:50 PM
RC62N wrote:
You can find the details of what you're looking for in the database documentation. There's a link to it at the top of the page when you open the report editor.WHERE
tblDiskdrives.Caption Like '%c%' -- drive caption contains "C" (caption is C:, D:, etc.)
AND Ceiling(tblDiskdrives.Freespace / 1024 / 1024) < 1024 -- free space < 1024 MB (aka 1 GB)
AND Ceiling(tblDiskdrives.Size / 1024 / 1024) <> 0 -- drive is not empty
AND tblAssetCustom.State = 1 -- asset is active
AND tblDiskdrives.DriveType = 3 -- local disk drive
‎06-19-2013 04:11 PM
‎06-19-2013 02:51 PM
Select Top 1000000 tsysOS.Image As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.IPAddress,
tblAssets.Firstseen,
tblAssets.Lastseen,
tblDiskdrives.Caption As [Disk],
Ceiling(tblDiskdrives.Freespace / 1024 / 1024) As FreeMB,
Ceiling(tblDiskdrives.Size / 1024 / 1024) As TotalMB
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Inner Join tblDiskdrives On tblAssets.AssetID = tblDiskdrives.AssetID
Where tblDiskdrives.Caption Like '%c%' And Ceiling(tblDiskdrives.Freespace /
1024 / 1024) < 1024 And Ceiling(tblDiskdrives.Size / 1024 / 1024) <> 0 And
tblAssetCustom.State = 1 And tblDiskdrives.DriveType = 3
Order By tblAssets.Domain,
tblAssets.AssetName,
[Disk]
‎02-21-2019 06:28 PM
Lansweeper wrote:
Please use the report below.Select Top 1000000 tsysOS.Image As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.IPAddress,
tblAssets.Firstseen,
tblAssets.Lastseen,
tblDiskdrives.Caption As [Disk],
Ceiling(tblDiskdrives.Freespace / 1024 / 1024) As FreeMB,
Ceiling(tblDiskdrives.Size / 1024 / 1024) As TotalMB
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Inner Join tblDiskdrives On tblAssets.AssetID = tblDiskdrives.AssetID
Where tblDiskdrives.Caption Like '%c%' And Ceiling(tblDiskdrives.Freespace /
1024 / 1024) < 1024 And Ceiling(tblDiskdrives.Size / 1024 / 1024) <> 0 And
tblAssetCustom.State = 1 And tblDiskdrives.DriveType = 3
Order By tblAssets.Domain,
tblAssets.AssetName,
[Disk]
‎06-18-2013 12:19 PM
‎06-17-2013 04:33 PM
Select Top 1000000 tsysOS.Image As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.IPAddress,
tblAssets.Firstseen,
tblAssets.Lastseen,
tblDiskdrives.Caption As [Disk],
Ceiling(tblDiskdrives.Freespace / 1024 / 1024) As FreeMB,
Ceiling(tblDiskdrives.Size / 1024 / 1024) As TotalMB
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Inner Join tblDiskdrives On tblAssets.AssetID = tblDiskdrives.AssetID
Where tblDiskdrives.Caption Like '%c%' And Ceiling(tblDiskdrives.Size / 1024 /
1024) <> 0 And tblAssetCustom.State = 1 And tblDiskdrives.DriveType = 3
Order By tblAssets.Domain,
tblAssets.AssetName,
[Disk]
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now