05-22-2013 02:14 AM
05-22-2013 09:53 PM
05-22-2013 03:08 AM
Select Top 1000000
tsysOS.Image As icon,
tblAssets.AssetID,
tblAssets.AssetUnique,
tsysOS.OSname,
tblAssets.Domain,
tblAssets.Scanserver,
tblComputersystem.Domainrole
From
tblAssets
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Inner Join tblComputersystem On tblAssets.AssetID = tblComputersystem.AssetID
Where
tblComputersystem.Domainrole > 1
And ( Select Count(*)
From tblFileVersions
Where tblFileVersions.AssetID = tblAssets.AssetID
And tblFileVersions.FilePathfull Like '%logfile.log') > 0
And ( Select Count(*)
From tblFileVersions
Where tblFileVersions.AssetID = tblAssets.AssetID
And tblFileVersions.Found = 0
And tblFileVersions.FilePathfull Like '%logfile.log') =
( Select Count(*)
From tblFileVersions
Where tblFileVersions.AssetID = tblAssets.AssetID
And tblFileVersions.FilePathfull Like '%logfile.log')
Order By
tblAssets.AssetUnique
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now