‎08-16-2010 08:10 PM
‎08-20-2010 07:47 AM
‎08-20-2010 04:14 AM
‎08-20-2010 12:39 AM
‎08-20-2010 12:29 AM
‎08-19-2010 11:04 AM
Select Top 1000000 dbo.tblComputers.Computername,
dbo.tblComputers.ComputerUnique, Web40OSName.OSname,
dbo.tblOperatingsystem.Description, dbo.tblDiskdrives.Caption,
Cast(Cast(dbo.tblDiskdrives.Freespace As bigint) / 1024 / 1024 As numeric) As
Free, Floor(Cast(Cast(dbo.tblDiskdrives.Freespace As bigint) / 1024 /
1024 As numeric) / Cast(Cast(dbo.tblDiskdrives.Size As bigint) / 1024 /
1024 As numeric) * 100) As Freepct, Cast(Cast(dbo.tblDiskdrives.Size
As bigint) / 1024 / 1024 As numeric) As [Total size],
dbo.tblDiskdrives.Lastchanged As [Last changed], Web40OSName.Compimage As
icon, tblCompCustom.Custom1
From dbo.tblComputers Inner Join
dbo.tblDiskdrives On dbo.tblComputers.Computername =
dbo.tblDiskdrives.Computername Inner Join
dbo.tblOperatingsystem On dbo.tblComputers.Computername =
dbo.tblOperatingsystem.Computername Inner Join
dbo.web40ActiveComputers On dbo.tblComputers.Computername =
dbo.web40ActiveComputers.Computername Inner Join
Web40OSName On Web40OSName.Computername = dbo.tblComputers.Computername
Inner Join
tblComputersystem On dbo.tblComputers.Computername =
tblComputersystem.Computername Inner Join
tblCompCustom On dbo.tblComputers.Computername = tblCompCustom.Computername
Where Floor(Cast(Cast(dbo.tblDiskdrives.Freespace As bigint) / 1024 /
1024 As numeric) / Cast(Cast(dbo.tblDiskdrives.Size As bigint) / 1024 /
1024 As numeric) * 100) <= 20 And Cast(Cast(dbo.tblDiskdrives.Size As bigint)
/ 1024 / 1024 As numeric) <> 0 And tblComputersystem.Domainrole > 1 And
dbo.tblDiskdrives.DriveType = '3' And tblCompCustom.Custom1 = '1825'
Order By Floor(Cast(Cast(dbo.tblDiskdrives.Freespace As bigint) / 1024 /
1024 As numeric) / Cast(Cast(dbo.tblDiskdrives.Size As bigint) / 1024 /
1024 As numeric) * 100), Cast(Cast(dbo.tblDiskdrives.Freespace As bigint) /
1024 / 1024 As numeric), dbo.tblDiskdrives.Caption
‎08-18-2010 11:18 PM
‎08-18-2010 12:12 AM
‎08-17-2010 11:04 PM
Select Top 1000000 dbo.tblComputers.Computername,
dbo.tblComputers.ComputerUnique, Web40OSName.OSname,
dbo.tblOperatingsystem.Description, dbo.tblDiskdrives.Caption,
Cast(Cast(dbo.tblDiskdrives.Freespace As bigint) / 1024 / 1024 As numeric) As
Free, Floor(Cast(Cast(dbo.tblDiskdrives.Freespace As bigint) / 1024 /
1024 As numeric) / Cast(Cast(dbo.tblDiskdrives.Size As bigint) / 1024 /
1024 As numeric) * 100) As Freepct, Cast(Cast(dbo.tblDiskdrives.Size
As bigint) / 1024 / 1024 As numeric) As [Total size],
dbo.tblDiskdrives.Lastchanged As [Last changed], Web40OSName.Compimage As icon
From dbo.tblComputers Inner Join
dbo.tblDiskdrives On dbo.tblComputers.Computername =
dbo.tblDiskdrives.Computername Inner Join
dbo.tblOperatingsystem On dbo.tblComputers.Computername =
dbo.tblOperatingsystem.Computername Inner Join
dbo.web40ActiveComputers On dbo.tblComputers.Computername =
dbo.web40ActiveComputers.Computername Inner Join
Web40OSName On Web40OSName.Computername = dbo.tblComputers.Computername
Inner Join
tblComputersystem On dbo.tblComputers.Computername =
tblComputersystem.Computername
Where Floor(Cast(Cast(dbo.tblDiskdrives.Freespace As bigint) / 1024 /
1024 As numeric) / Cast(Cast(dbo.tblDiskdrives.Size As bigint) / 1024 /
1024 As numeric) * 100) <= 20 And Cast(Cast(dbo.tblDiskdrives.Size As bigint)
/ 1024 / 1024 As numeric) <> 0 And tblComputersystem.Domainrole > 1 And
dbo.tblDiskdrives.DriveType = '3'
Order By Floor(Cast(Cast(dbo.tblDiskdrives.Freespace As bigint) / 1024 /
1024 As numeric) / Cast(Cast(dbo.tblDiskdrives.Size As bigint) / 1024 /
1024 As numeric) * 100), Cast(Cast(dbo.tblDiskdrives.Freespace As bigint) /
1024 / 1024 As numeric), dbo.tblDiskdrives.Caption
‎08-17-2010 11:26 AM
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now