If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
How to get database list for each instance locally on the server in a c/c++ program?
I can do this through command line:
set DB2INSTANCE=db2inst2
db2cmd /i db2 list database directory
set DB2INSTANCE=db2
db2cmd /i db2 list database directory
I'm trying to get the same result in a c++ application using db2 api. Anybody knows how to do this?