Focal Point
[SOLVED]Search for user query in InfoAssist

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/3187031496

August 13, 2020, 07:42 AM
Martin vK
[SOLVED]Search for user query in InfoAssist
We noted a query using heavy database resources. In our database we could extract the SQL query. We now want to find the WebFocus query causing this. We could not find a scheduled ReportCaster job causing this, so probably it is someone doing an InfoAssist report.

Is there a possibility to search the repository for InfoAssist reports that would match this query, so maybe search for specific filter/where-statement or masterfile or join used?

This message has been edited. Last edited by: Martin vK,


WebFocus 8206M, iWay DataMigrator, Windows, DB2 Windows V10.5, MS SQL Server, Azure SQL, Hyperstage, ReportCaster
August 13, 2020, 07:54 AM
MartinY
Assuming that IA code reside at the same place as other fex code
SELECT
     T2.PRT_PATH AS 'Location',
     T2.OBJNAME AS 'Object Name',
     'IBFS:' + T2.PRT_PATH + '/' + T2.OBJNAME AS 'Full IBFS path'
  FROM [DBname].dbo.WF_CONTENT_REVS T1
  INNER JOIN [DBname].dbo.WF_REPOSOBJ T2
     ON T1.OBJ_HANDLE = T2.HANDLE
WHERE UPPER(CAST(CAST(T1.BCONTENT AS VARBINARY(MAX)) AS VARCHAR(MAX))) LIKE '%String To Find%'
ORDER BY 1, 2, 3



WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
August 13, 2020, 09:44 AM
Martin vK
Thanks. Works fine.


WebFocus 8206M, iWay DataMigrator, Windows, DB2 Windows V10.5, MS SQL Server, Azure SQL, Hyperstage, ReportCaster