‎11-03-2014 11:29 AM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName As [Hosting Server],
tblAssets.IPAddress,
tsysOS.OSname,
tblHyperVGuest.Name As [Guest Server Name],
tblHyperVGuest.Memory,
tsysOS.Image As icon
From tblAssets
Inner Join tblHyperVGuest On tblAssets.AssetID = tblHyperVGuest.AssetID
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Order By [Hosting Server]
Solved! Go to Solution.
‎11-05-2014 01:12 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName As [Hosting Server],
tblAssets.IPAddress,
tsysOS.OSname,
tblHyperVGuest.Name As [Guest Server Name],
tblHyperVGuest.Memory,
tsysOS.Image As icon,
tblAssets1.IPAddress As [Guest IP],
tblDiskdrives.Caption,
Cast(Cast(tblDiskdrives.Size As bigint) / 1024 / 1024 As numeric) As
[Size Allocated Per Drive]
From tblAssets
Inner Join tblHyperVGuest On tblAssets.AssetID = tblHyperVGuest.AssetID
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Inner Join TblHyperVGuestNetwork On tblHyperVGuest.hypervguestID =
TblHyperVGuestNetwork.HyperVGuestID
Left Join tblAssets tblAssets1
On tblAssets1.Mac = TblHyperVGuestNetwork.MacAddress
Left Join tblDiskdrives On tblAssets1.AssetID = tblDiskdrives.AssetID
Where (tblAssets1.IPAddress Is Null) Or
(Cast(Cast(tblDiskdrives.Size As bigint) / 1024 / 1024 As numeric) Is Not
Null)
Order By [Hosting Server]
‎11-05-2014 01:12 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName As [Hosting Server],
tblAssets.IPAddress,
tsysOS.OSname,
tblHyperVGuest.Name As [Guest Server Name],
tblHyperVGuest.Memory,
tsysOS.Image As icon,
tblAssets1.IPAddress As [Guest IP],
tblDiskdrives.Caption,
Cast(Cast(tblDiskdrives.Size As bigint) / 1024 / 1024 As numeric) As
[Size Allocated Per Drive]
From tblAssets
Inner Join tblHyperVGuest On tblAssets.AssetID = tblHyperVGuest.AssetID
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Inner Join TblHyperVGuestNetwork On tblHyperVGuest.hypervguestID =
TblHyperVGuestNetwork.HyperVGuestID
Left Join tblAssets tblAssets1
On tblAssets1.Mac = TblHyperVGuestNetwork.MacAddress
Left Join tblDiskdrives On tblAssets1.AssetID = tblDiskdrives.AssetID
Where (tblAssets1.IPAddress Is Null) Or
(Cast(Cast(tblDiskdrives.Size As bigint) / 1024 / 1024 As numeric) Is Not
Null)
Order By [Hosting Server]
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now