Hi - sorry for my late answer an thank you for your answer. I hoped there would be a solution via SQL. To step through the jrxml files by script currently is not possible, because we still use the old iReport to edit the reports. Perhaps, when we have migrates to JSS, I can build a script which steps though all jrxml-files to get the used queries - or better to get the used view-names in the queries. But this would be difficult, if there is more than one view used.