08-04-2022 08:35 PM
I had an administrator modify a default report several months ago. Can someone provide the SQL for the report Scan issues: RPC server unavailable. They forgot to do a save as first.
Solved! Go to Solution.
08-04-2022 11:08 PM
This is the my default one.
Select Top (1000000) tsysAssetTypes.AssetTypeIcon10 As icon,
tblErrors.AssetID,
tblAssets.AssetName,
tsysasseterrortypes.ErrorMsg As Issue,
tblErrors.ErrorText As [Issue Message],
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 As [Created at],
tblAssets.Lastseen As [Last successful scan]
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 Outer Join tsysIPLocations On tsysIPLocations.LocationID =
tblAssets.LocationID
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
08-05-2022 12:54 PM
Thanks. Much appreciated.
08-04-2022 11:08 PM
This is the my default one.
Select Top (1000000) tsysAssetTypes.AssetTypeIcon10 As icon,
tblErrors.AssetID,
tblAssets.AssetName,
tsysasseterrortypes.ErrorMsg As Issue,
tblErrors.ErrorText As [Issue Message],
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 As [Created at],
tblAssets.Lastseen As [Last successful scan]
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 Outer Join tsysIPLocations On tsysIPLocations.LocationID =
tblAssets.LocationID
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
08-05-2022 12:54 PM
Thanks. Much appreciated.
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now