Select Top 1000000 tblAssets.AssetID, tblAssets.AssetName, tblAssets.Domain, tblAssets.Username, Coalesce(tsysOS.Image, tsysAssetTypes.AssetTypeIcon10) As icon, tblAssets.IPAddress, tsysIPLocations.IPLocation, tsysOS.OSname As OS, tblAssets.Version, FriendlyName as DeviceName, DisplayName as DriverName, DriverVersion, ServiceType, tblSystemDrivers.State, StartMode, Case When tblErrors.ErrorText Is Not Null Or tblErrors.ErrorText != '' Then 'Scanning Error: ' + tsysasseterrortypes.ErrorMsg Else '' End As ScanningErrors, tblAssets.Lastseen, tblAssets.Lasttried From tblAssets Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype Inner Join tsysIPLocations On tsysIPLocations.LocationID = tblAssets.LocationID Inner Join tblState On tblState.State = tblAssetCustom.State Left Join tsysOS On tsysOS.OScode = tblAssets.OScode Left Join (Select Distinct Top 1000000 tblErrors.AssetID As ID, Max(tblErrors.Teller) As ErrorID From tblErrors Group By tblErrors.AssetID) As ScanningError On tblAssets.AssetID = ScanningError.ID Left Join tblErrors On ScanningError.ErrorID = tblErrors.Teller Left Join tsysasseterrortypes On tsysasseterrortypes.Errortype = tblErrors.ErrorType inner join tblSystemDriverPnpEntity on tblSystemDriverPnpEntity.AssetID = tblassets.AssetID inner join tblSystemDriversUni on tblSystemDriversUni.Name = tblSystemDriverPnpEntity.Name inner join tblPnPSignedDrivers on tblPnPSignedDrivers.DeviceID = tblSystemDriverPnpEntity.DeviceID inner Join tblSystemDrivers On tblSystemDrivers.SystemDriverUniID = tblSystemDriversUni.SystemDriverUniID Where tblState.Statename = 'Active' Order by tblAssets.IPAddress
Explore the full platform, free for 14 days.
No credit card required.