→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !
‎11-20-2014 11:10 AM
Select Top 1000000 Convert(nVARCHAR(10),tblNtlog.TimeGenerated,102) As
DateGenerated,
Count(tblAssets.AssetID) As Total
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tblAssets.Assettype = tsysAssetTypes.AssetType
Inner Join tblState On tblState.State = tblAssetCustom.State
Inner Join tblNtlog On tblAssets.AssetID = tblNtlog.AssetID
Where tblState.Statename = 'Active' And (tsysAssetTypes.AssetTypename =
'Windows' Or tsysAssetTypes.AssetTypename = 'Windows CE') And
Case tblNtlog.Eventtype When 1 Then 'Error' Else 'Other'
End = 'Error' And tblNtlog.TimeGenerated > GetDate() - 14
Group By Convert(nVARCHAR(10),tblNtlog.TimeGenerated,102)
Order By DateGenerated Desc
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now