The Query Builder can be used to analyze universe connections. I recently used the Query Builder to assist in how many universes (and which ones) were using a specific connection. Using the information, I was able to update and republish universes to use the “preferred” universe connection. Once all universes were updated, the Query Builder clearly showed that the “non preferred” universe connections were no longer in use and could be safely deleted using the Central Management Console (CMC).
First, determine the SI_ID of the connection.
SELECT SI_NAME, SI_ID, SI_DESCRIPTION, SI_CONNUNIVERSE
FROM CI_APPOBJECTS
WHERE SI_KIND=’MetaData.DataConnection’
— AND SI_NAME = ‘DW’
ORDER BY SI_NAME
Then, use the list of IDs in the SI_CONNUNIVERSE collection to build a second query to inquire about the universes that use that connection.
SELECT SI_NAME, SI_SHORTNAME, SI_DESCRIPTION, SI_ID, SI_PARENT_FOLDER, SI_OWNER, SI_CREATION_TIME
FROM CI_APPOBJECTS
WHERE SI_KIND=’Universe’
AND SI_ID IN (692,670,633,634,699)
The Query Builder can also identify unused universe connections. Using the first query above, look for connections where the SI_CONNUNIVERSE has a single attribute of SI_TOTAL with a value of 0. For example, no universes are using the test only connection.
SELECT SI_NAME, SI_ID, SI_DESCRIPTION, SI_CONNUNIVERSE
FROM CI_APPOBJECTS
WHERE SI_KIND=’MetaData.DataConnection’
AND SI_NAME = ‘test only’
ORDER BY SI_NAME
Accordingly, the test only connection can be safely deleted from the Central Management Console (CMC).
Resources
- Read my review of Julian Romeo’s ebook, The Business Objects Query Builder Guide, added October 18, 2013
- Read about the SAP BusinessObjects Business Intelligence 4.0/4.1 Query Builder
If you’ve found a useful resource regarding the Query Builder, feel free to post a comment to share with others.
Great Stuff. Thanks.
Hi Mark, did you know if this still work on BO4.
Regards
Rommel
Rommel,
The SDK doesn’t change much from release to release, so these queries should most likely work. I haven’t used Query Builder 4.0 much because EV Technologies has a product named Sherlock that is much more powerful.
Regards.
Dallas
Now, how can I combine the 2 queries, and get the list of all universes and their connection IN ONE SHOT?
Take a look at 3rd-party tools that demystify the inner workings of the CMS database like EV Technologies Sherlock.