06-05-2012 01:26 PM
Solved! Go to Solution.
03-29-2013 05:38 PM
Select Distinct Top 1000000 tsysOS.Image As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.IPAddress,
tsysOS.OSname,
tblComputersystem.SystemType,
tblProcessor.NumberOfCores * tblAssets.NrProcessors As TotalCores,
tblAssets.Memory
From tblAssets
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Inner Join tblComputersystem On tblAssets.AssetID = tblComputersystem.AssetID
Inner Join tblProcessor On tblAssets.AssetID = tblProcessor.AssetID
Order By tblAssets.Domain,
tblAssets.AssetName
03-29-2013 05:38 PM
Select Distinct Top 1000000 tsysOS.Image As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.IPAddress,
tsysOS.OSname,
tblComputersystem.SystemType,
tblProcessor.NumberOfCores * tblAssets.NrProcessors As TotalCores,
tblAssets.Memory
From tblAssets
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Inner Join tblComputersystem On tblAssets.AssetID = tblComputersystem.AssetID
Inner Join tblProcessor On tblAssets.AssetID = tblProcessor.AssetID
Order By tblAssets.Domain,
tblAssets.AssetName
04-04-2013 11:30 PM
Lansweeper wrote:
The report below will work for Lansweeper 5.0.Select Distinct Top 1000000 tsysOS.Image As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.IPAddress,
tsysOS.OSname,
tblComputersystem.SystemType,
tblProcessor.NumberOfCores * tblAssets.NrProcessors As TotalCores,
tblAssets.Memory
From tblAssets
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Inner Join tblComputersystem On tblAssets.AssetID = tblComputersystem.AssetID
Inner Join tblProcessor On tblAssets.AssetID = tblProcessor.AssetID
Order By tblAssets.Domain,
tblAssets.AssetName
12-18-2012 08:25 PM
12-20-2012 02:13 PM
kconverse wrote:
I cannot get the last query to return results. Could there be an issue with the query below not being written in English?
Select Top 1000000 a.SortOrder, e.Computer, e.IP, b.OS, c.Architektur, d.TotalCores, f.Memory, a.Funktionen, b.icon, a.Computername, a.Umgebung From (Select tblCompCustom.Computername, tblCompCustom.Custom8 As Funktionen, tblCompCustom.Custom9 As Umgebung, tblCompCustom.Custom7 As SortOrder From tblCompCustom) a Left Outer Join (Select Web40OSName.OSname As OS, Web40OSName.Compimage As icon, Web40OSName.Computername From Web40OSName) b On a.Computername = b.Computername Left Outer Join (Select tblComputersystem.SystemType As Architektur, tblComputersystem.Computername From tblComputersystem) c On a.Computername = c.Computername Left Outer Join (Select Distinct a.Computername, IsNull(a.NumberOfCores, 0) As CoresperSocket, b.NrOfProcessors As Sockets, IsNull(a.NumberOfCores, 1) * b.NrOfProcessors As TotalCores From tblPROCESSOR a Inner Join web40ProcessorCapacity b On b.Computername = a.Computername Where a.Computername = b.Computername) d On a.Computername = d.Computername Left Outer Join (Select tblComputers.Computer, tblComputers.Computername, tblComputers.LastknownIP As IP From tblComputers) e On a.Computername = e.Computername Left Outer Join (Select Cast(Cast(tblComputersystem.TotalPhysicalMemory As bigint) / 1048576 As numeric) As Memory, tblComputersystem.Computername From tblComputersystem) f On a.Computername = f.Computername Order By a.SortOrder
02-27-2013 05:08 PM
Select Top 1000000 a.SortOrder, e.Computer, e.IP, b.OS, c.Architektur, d.TotalCores, f.Memory, a.Funktionen, b.icon, a.Computername, a.Umgebung From (Select tblCompCustom.Computername, tblCompCustom.Custom8 As Funktionen, tblCompCustom.Custom9 As Umgebung, tblCompCustom.Custom7 As SortOrder From tblCompCustom) a Left Outer Join (Select Web40OSName.OSname As OS, Web40OSName.Compimage As icon, Web40OSName.Computername From Web40OSName) b On a.Computername = b.Computername Left Outer Join (Select tblComputersystem.SystemType As Architektur, tblComputersystem.Computername From tblComputersystem) c On a.Computername = c.Computername Left Outer Join (Select Distinct a.Computername, IsNull(a.NumberOfCores, 0) As CoresperSocket, b.NrOfProcessors As Sockets, IsNull(a.NumberOfCores, 1) * b.NrOfProcessors As TotalCores From tblPROCESSOR a Inner Join web40ProcessorCapacity b On b.Computername = a.Computername Where a.Computername = b.Computername) d On a.Computername = d.Computername Left Outer Join (Select tblComputers.Computer, tblComputers.Computername, tblComputers.LastknownIP As IP From tblComputers) e On a.Computername = e.Computername Left Outer Join (Select Cast(Cast(tblComputersystem.TotalPhysicalMemory As bigint) / 1048576 As numeric) As Memory, tblComputersystem.Computername From tblComputersystem) f On a.Computername = f.Computername Order By a.SortOrder
Invalid object name 'tblCompCustom'.
10-16-2012 08:35 PM
06-06-2012 12:19 PM
06-13-2012 04:19 PM
Select Distinct Top 1000000 tblComputers.Computername,
tblComputers.ComputerUnique, tblComputers.Domain,
web40ProcessorCapacity.NrOfProcessors As Sockets, tblPROCESSOR.NumberOfCores
As Cores, web40ProcessorCapacity.NrOfProcessors * tblPROCESSOR.NumberOfCores
As Total
From tblComputers Left Join
web40ProcessorCapacity On web40ProcessorCapacity.Computername =
tblComputers.Computername Inner Join
tblPROCESSOR On tblPROCESSOR.Caption = web40ProcessorCapacity.Name And
tblPROCESSOR.Computername = web40ProcessorCapacity.Computername
Order By tblComputers.ComputerUnique
06-06-2012 11:00 AM
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now