Thanks for all replies i got... =)
May I suggest a workaround: Add a table to DB UNIVERSITY1 and keep a list of your databases in there. With some statement like - SELECT
-
a.dbname
-
from
-
meta.listofdatabases a
-
order by
-
a.dbname asc
you'll be able to offer a dropbox with the databases names easily.
It's truly a good idea, and i very appreciate that... =)
But, I think in my cases that idea cannot be applied...
Because, i have some databases and anybody (who have access) can create a new database and alter any table (he or she wants) for some purposes.
So, i want to previews all the exist databases without need any extra works (like adding information into new table or update a file).
I'd found that in DB2 the information about databases is stored in
Instances or
nodes so, i'm still struggling to get this information trough Java...
You're right, JDBC will take only SQL statements. Isn't there a database catalogue table already in DB2 like MySQL's information_schema?
I still search for this too... I hope this database catalogue table is really exist...
If yes, it's very helpful for me to develop in more simplicity... =)
At least, i don't need to think hard =)
Thanks for the help and suggestions =)
Best Regards,
Hose Surya