cancel
Showing results for 
Search instead for 
Did you mean: 

How to find in which workbooks a query is used?

Former Member
0 Kudos

We are looking to find a way to list a simple report that should list the all query names and all workbooks where respective query is used (with other words: the query workbook relationship).

Sop far this can be seen in metadata repository, but only query by query. Most probably this info it is stored in some tables. The question is in which tables?!

Any help would be much appreciated.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Looked in stats, but not very helpful and quite buggy (BC 3.2). Thx for the tip with RSRWORKBOOK.

After some investigation the full answer is:

- table <b>RSRWORKBOOK</b> contains the WORKBOOKID and the GENUNIID

- table <b>RSRREPDIR</b> contains GENUNIID, query name RNAME, AUTHOR, LASTUSER, INFOCUBE

- table <b>RSRINDEXT</b> contains the WORKBOOKID and workbook TITLE

You should join the tables by GENUNIID and select in RSRREPDIR the rows that have COMPTYPE='REP' for queries and object version active/modified.

With this information an infoset query can be created to list all workbook-query-user relationship (and even the query-infocube relationship).

For people that would like to spend some money, nice BSP for similar stuff is provided by Cubeserv AG (see deatils at http://www.cubeserv.ch/index_en.html).

Thx for your help & best regards,

Narcis

Former Member
0 Kudos

Hi,

the connections are stored in RSRWORKBOOK.

Regards

Heike

Former Member
0 Kudos

Hi Narcis,

Have you tried looking at the stats cube? I haven't used it for that specific purpose, but there is a lot of information available in the Statistics cube.

Thanks,

Allan