I have see the example of list database tables of one universe. I want to list all database tables of all universes. How can I achieve it by excel vba?
I used the code as follow:
"SELECT TOP 1000000 SI_ID, SI_NAME, SI_TABLE FROM CI_APPOBJECTS " & _
"Where SI_KIND='Universe' ORDER BY SI_NAME"
but the return value of SI_TABLE is just “1”, I don’t know why.
But I still don’t know how to list databases of all universe together without choosing one after one. The classic case of Dwayne Hoffpauir is wonderful but it only get the information of the universe which I choose. I have more than 200 universe to document.
And I found that when I used
Select * From CI_APPOBJECTS where SI_KIND ='Universe'
There was no information about database but SI_TABLE. But its values is usually “0” or “1”. What is its meaning? Does that mean I cannot get the information through the method?
You can’t do it in a single query, but you can write a small application to do it that will:
Get the list of all of the universes.
For each universe in the list, get the list of all of the tables.
You can then store the information in Excel or another format - for example, as a .NET programmer, I personally like to store the information in memory in a DataSet and then run a Crystal Report off of it to get what I need.