
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-01-2016 04:28 PM
Hi there
I'm trying to run a report to verify that 4 reports have been updated. Now, I have a report that checks one file but not sure of the syntax to add other files to it.
Thanks
Andy
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblFileVersions.Found,
tblFileVersions.FilePathfull,
tblFileVersions.FileVersion,
tblFileVersions.CompanyName,
tblFileVersions.Filesize,
tblFileVersions.Lastchanged
From tblAssets
Inner Join tblFileVersions On tblAssets.AssetID = tblFileVersions.AssetID
Where tblFileVersions.Found = 'True' And tblFileVersions.FilePathfull Like
'%Active Users.pdf' And tblAssets.Assettype = -1
Order By tblAssets.AssetName
I'm trying to run a report to verify that 4 reports have been updated. Now, I have a report that checks one file but not sure of the syntax to add other files to it.
Thanks
Andy
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblFileVersions.Found,
tblFileVersions.FilePathfull,
tblFileVersions.FileVersion,
tblFileVersions.CompanyName,
tblFileVersions.Filesize,
tblFileVersions.Lastchanged
From tblAssets
Inner Join tblFileVersions On tblAssets.AssetID = tblFileVersions.AssetID
Where tblFileVersions.Found = 'True' And tblFileVersions.FilePathfull Like
'%Active Users.pdf' And tblAssets.Assettype = -1
Order By tblAssets.AssetName
Solved! Go to Solution.
Labels:
- Labels:
-
Report Center
1 ACCEPTED SOLUTION
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-07-2016 03:11 PM
You can add additional files to the Criteria column of the FilePathfull expression, with the OR operator. This is standard SQL syntax, not specific to Lansweeper. Instead of this...
... use something like this:
To also list machines that are missing one or more files, clear the Criteria column of the Found expression.
Like '%Active Users.pdf'
... use something like this:
Like '%Active Users.pdf' or Like '%2nd file.pdf' or Like '%3rd file.pdf' or Like '%4th file.pdf'
To also list machines that are missing one or more files, clear the Criteria column of the Found expression.
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-11-2016 07:28 PM
Make sure you are replacing the Like statement in the Criteria column of the expression list, not directly in the SQL query. The change should work without issue.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2016 03:54 PM
When I do that I get the error:
Invalid SELECT statement. Unexpected token "Like" at line 13, pos 44.: Unexpected token "Like" at line 13, column 44

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-07-2016 03:11 PM
You can add additional files to the Criteria column of the FilePathfull expression, with the OR operator. This is standard SQL syntax, not specific to Lansweeper. Instead of this...
... use something like this:
To also list machines that are missing one or more files, clear the Criteria column of the Found expression.
Like '%Active Users.pdf'
... use something like this:
Like '%Active Users.pdf' or Like '%2nd file.pdf' or Like '%3rd file.pdf' or Like '%4th file.pdf'
To also list machines that are missing one or more files, clear the Criteria column of the Found expression.
