‎05-28-2009 06:51 PM
‎05-28-2009 11:21 PM
SELECT TOP 100 PERCENT dbo.tblComputers.Computername AS Computer, dbo.tblOperatingsystem.Description, dbo.tblComputersystem.Manufacturer,
dbo.tblComputersystem.Model, CAST(dbo.web30ProcessorCapacity.NrOfProcessors AS varchar)
+ ' * ' + CAST(dbo.web30ProcessorCapacity.MaxClockSpeed AS varchar) + ' Mhz' AS Processor,
CAST(CAST(CAST(dbo.tblComputersystem.TotalPhysicalMemory AS bigint) / 1024 / 1024 AS NUMERIC) AS varchar) + ' KB' AS Memory,
CAST(CAST(CAST(dbo.tblDiskdrives.Size AS bigint) / 1024 / 1024 / 1024 AS numeric) AS varchar) + ' GB' AS HDDsize
FROM dbo.tblComputers INNER JOIN
dbo.tblComputersystem ON dbo.tblComputers.Computername = dbo.tblComputersystem.Computername INNER JOIN
dbo.tblDiskdrives ON dbo.tblComputers.Computername = dbo.tblDiskdrives.Computername INNER JOIN
dbo.tblOperatingsystem ON dbo.tblComputers.Computername = dbo.tblOperatingsystem.Computername LEFT OUTER JOIN
dbo.web30ProcessorCapacity ON dbo.tblComputers.Computername = dbo.web30ProcessorCapacity.Computername
WHERE (dbo.tblComputersystem.Domainrole = '1') AND (dbo.tblDiskdrives.Caption = 'c:')
ORDER BY dbo.tblComputers.Computername
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now