So close! This added the Column Host next to AssetName, which is exactly what I was looking for! The only issue though is that it is only showing VM Servers, and removed the Physical servers. I did remove the "tblAssets.Domain," since it popped up first in the list. I compared your report next to mine to try and figure out why it removed my physical servers, but I can't figure out why it would have removed a physical server on the report. I even tried to add in
Inner Join tblAssets tblAssets1 On
tblAssets1.AssetID = tblComputersystem.AssetID And tblAssets1.AssetID =
tblAssetCustom.AssetID And tsysIPLocations.LocationID =
tblAssets1.LocationID
but it still didn't include any physical servers. This is progress though! Further than I got before. I will past what I have on the report below. (It's just the minor change of removing the Domain column.) Is there something missing that would remove a physical server, or will this report only show VM servers?
Select Top 1000000 tsysOS.Image As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets2.AssetName As Host,
tblAssets.IPAddress,
tsysOS.OSname As OS,
tblAssetCustom.Custom2 As Backups,
tblAssetCustom.PurchaseDate,
tblAssetCustom.Warrantydate,
tblAssets.Userdomain,
tblAssets.Username,
tblAssets.Description,
tblAssetCustom.Manufacturer,
tblAssetCustom.Model,
tblAssetCustom.Location,
tsysIPLocations.IPLocation,
tblAssets.Firstseen,
tblAssets.Lastseen
From tblComputersystem
Inner Join tblAssets On tblComputersystem.AssetID = tblAssets.AssetID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Left Join tsysIPLocations On tsysIPLocations.StartIP <= tblAssets.IPNumeric
And tsysIPLocations.EndIP >= tblAssets.IPNumeric
Inner Join tblVmwareGuest On tblAssets.AssetID = tblVmwareGuest.AssetID
Inner Join tblVmwareInfo On tblVmwareGuest.HostID = tblVmwareInfo.VmwareID
Inner Join tblAssets As tblAssets2 On tblAssets2.AssetID =
tblVmwareInfo.AssetID
Where tblComputersystem.Domainrole > 1 And tblAssetCustom.State = 1
Order By tblAssets.AssetName