‎09-11-2017 06:31 PM
Solved! Go to Solution.
‎09-12-2017 05:21 PM
Select Top 1000000 tblErrors.AssetID,
tblAssets.AssetName,
tsysasseterrortypes.ErrorMsg,
tblErrors.ErrorText,
tblErrors.Lastchanged As [Last changed],
tblAssets.Domain,
tsysAssetTypes.AssetTypename As Type,
tblAssets.IPAddress,
tblAssets.Description,
tblAssetCustom.Manufacturer,
tblAssetCustom.Model,
tblAssetCustom.Location,
tsysIPLocations.IPLocation,
tblAssets.Firstseen,
tblAssets.Lastseen,
tsysAssetTypes.AssetTypeIcon10 As icon
From tblErrors
Inner Join tblAssets On tblErrors.AssetID = tblAssets.AssetID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysasseterrortypes On tblErrors.ErrorType =
tsysasseterrortypes.Errortype
Left Outer Join tblOperatingsystem On tblAssets.AssetID =
tblOperatingsystem.AssetID
Left Join tsysIPLocations On tsysIPLocations.StartIP <= tblAssets.IPNumeric
And tsysIPLocations.EndIP >= tblAssets.IPNumeric
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Where tblOperatingsystem.AssetID Is Null And tblAssetCustom.State = 1 And
tblErrors.ErrorType = 2
Order By [Last changed] Desc
‎09-12-2017 05:21 PM
Select Top 1000000 tblErrors.AssetID,
tblAssets.AssetName,
tsysasseterrortypes.ErrorMsg,
tblErrors.ErrorText,
tblErrors.Lastchanged As [Last changed],
tblAssets.Domain,
tsysAssetTypes.AssetTypename As Type,
tblAssets.IPAddress,
tblAssets.Description,
tblAssetCustom.Manufacturer,
tblAssetCustom.Model,
tblAssetCustom.Location,
tsysIPLocations.IPLocation,
tblAssets.Firstseen,
tblAssets.Lastseen,
tsysAssetTypes.AssetTypeIcon10 As icon
From tblErrors
Inner Join tblAssets On tblErrors.AssetID = tblAssets.AssetID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysasseterrortypes On tblErrors.ErrorType =
tsysasseterrortypes.Errortype
Left Outer Join tblOperatingsystem On tblAssets.AssetID =
tblOperatingsystem.AssetID
Left Join tsysIPLocations On tsysIPLocations.StartIP <= tblAssets.IPNumeric
And tsysIPLocations.EndIP >= tblAssets.IPNumeric
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Where tblOperatingsystem.AssetID Is Null And tblAssetCustom.State = 1 And
tblErrors.ErrorType = 2
Order By [Last changed] Desc
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now