‎02-20-2012 02:05 PM
Solved! Go to Solution.
‎02-20-2012 03:08 PM
Select Distinct Top 1000000 tblComputers.Computername,
tblComputers.ComputerUnique, tblComputers.Domain, tblComputers.LastknownIP As
[IP Address], tblComputers.Lastseen, Web40OSName.OSname,
tblOperatingsystem.ServicePackMajorVersion, tblComputerSystemProduct.Vendor As
Manufacturer, tblComputerSystemProduct.Name As Model,
web40ProcessorCapacity.NrOfProcessors, web40ProcessorCapacity.CPU,
web40CorrectMemory.Memory As Memory, tblDiskdrives.Caption,
Cast(Cast(Cast(tblDiskdrives.Size As bigint) / 1024 / 1024 / 1024 As
numeric) As varchar) As [Disk size], Cast(Cast(Cast(tblDiskdrives.Freespace
As bigint) / 1024 / 1024 / 1024 As numeric) As varchar) As [Free Space]
From tblComputers Inner Join
tblDiskdrives On tblComputers.Computername = tblDiskdrives.Computername
Left Outer Join
web40ProcessorCapacity On tblComputers.Computername =
web40ProcessorCapacity.Computername Inner Join
web40ActiveComputers On tblComputers.Computername =
web40ActiveComputers.Computername Inner Join
web40CorrectMemory On web40CorrectMemory.Computername =
tblComputers.Computername Inner Join
Web40OSName On Web40OSName.Computername = tblComputers.Computername Inner Join
tblComputerSystemProduct On tblComputers.Computername =
tblComputerSystemProduct.Computername Inner Join
tblOperatingsystem On tblComputers.Computername =
tblOperatingsystem.Computername Inner Join
tblDiskdrives tblDiskdrives1 On tblComputers.Computername =
tblDiskdrives1.Computername
Where (tblDiskdrives.Caption Like '%C%') Or
(tblDiskdrives.Caption Like '%D%')
Order By dbo.tblComputers.Computername
‎02-20-2012 03:22 PM
‎02-20-2012 03:08 PM
Select Distinct Top 1000000 tblComputers.Computername,
tblComputers.ComputerUnique, tblComputers.Domain, tblComputers.LastknownIP As
[IP Address], tblComputers.Lastseen, Web40OSName.OSname,
tblOperatingsystem.ServicePackMajorVersion, tblComputerSystemProduct.Vendor As
Manufacturer, tblComputerSystemProduct.Name As Model,
web40ProcessorCapacity.NrOfProcessors, web40ProcessorCapacity.CPU,
web40CorrectMemory.Memory As Memory, tblDiskdrives.Caption,
Cast(Cast(Cast(tblDiskdrives.Size As bigint) / 1024 / 1024 / 1024 As
numeric) As varchar) As [Disk size], Cast(Cast(Cast(tblDiskdrives.Freespace
As bigint) / 1024 / 1024 / 1024 As numeric) As varchar) As [Free Space]
From tblComputers Inner Join
tblDiskdrives On tblComputers.Computername = tblDiskdrives.Computername
Left Outer Join
web40ProcessorCapacity On tblComputers.Computername =
web40ProcessorCapacity.Computername Inner Join
web40ActiveComputers On tblComputers.Computername =
web40ActiveComputers.Computername Inner Join
web40CorrectMemory On web40CorrectMemory.Computername =
tblComputers.Computername Inner Join
Web40OSName On Web40OSName.Computername = tblComputers.Computername Inner Join
tblComputerSystemProduct On tblComputers.Computername =
tblComputerSystemProduct.Computername Inner Join
tblOperatingsystem On tblComputers.Computername =
tblOperatingsystem.Computername Inner Join
tblDiskdrives tblDiskdrives1 On tblComputers.Computername =
tblDiskdrives1.Computername
Where (tblDiskdrives.Caption Like '%C%') Or
(tblDiskdrives.Caption Like '%D%')
Order By dbo.tblComputers.Computername
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now