MikeMc wrote:
Thanks for the screenshot. It helps clear up the problem. I don't use that feature, but here's a query that should pull the 'Asset Location' for you.
Select Top (1000000) tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tblAssets.Username,
tblAssets.Description,
T1.Location,
tblAssetGroups.AssetGroup
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblAssetGroupLink On tblAssets.AssetID = tblAssetGroupLink.AssetID
Inner Join tblAssetGroups On tblAssetGroups.AssetGroupID =
tblAssetGroupLink.AssetGroupID And tblAssetGroups.Builtin = 0
Left Join tblAssetRelations On tblAssetRelations.ChildAssetID =
tblAssets.AssetID And tblAssetRelations.Type = 14
Left Join (Select a.AssetID,
a.AssetName As Location
From tblAssets a) T1 On T1.AssetID = tblAssetRelations.ParentAssetID
Where tblAssetGroups.AssetGroup = 'rugged laptops' And tblAssetCustom.State = 1
Order By tblAssets.AssetName
Hi,
I am also having the same issue... The Asset Location is empty..
Select Top 1000000 tsysOS.Image As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tsysOS1.OSname As [Not Scanned],
tsysOS.OSname As OS,
tblOperatingsystem.Caption,
tblAssets.IPAddress,
tsysIPLocations.IPLocation,
tblAssets.SP As SP,
tblAssets.Username,
tblAssetCustom.Model,
tblAssetCustom.Manufacturer,
tblAssets.Firstseen,
tblAssets.Lastseen,
tblAssetCustom1.Location
From tblAssets
Inner Join tblOperatingsystem
On tblAssets.AssetID = tblOperatingsystem.AssetID
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Left Join tsysIPLocations On tblAssets.LocationID = tsysIPLocations.LocationID
Inner Join tblAssetCustom tblAssetCustom1 On tblAssets.AssetID =
tblAssetCustom1.AssetID,
tsysOS tsysOS1
Where tsysOS1.OSname Like '%Not Scanned%' And tblAssetCustom.State = 1
Order By tsysIPLocations.IPLocation,
OS,
tblAssets.AssetName,
tblOperatingsystem.Caption
Thanks!