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.

 
Go Back  dBforums > Database Server Software > DB2 > List all the database name?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-06-04, 05:48
carmenlei carmenlei is offline
Registered User
 
Join Date: Jun 2004
Posts: 24
List all the database name?

I am writing a C++ program to connect to the db2 remotely. I want to get all the database name under an instant(node) in the server, what can I do? I have try the db2api function sqledosd() and sqledgne(), but I can only get the database name that I've cataloged. What should I do? Isn't it available for db2api/ cli / SQL Statement? And how can I know whether the database was created by user or system? Thanks very much~!

Last edited by carmenlei; 07-06-04 at 05:52.
Reply With Quote
  #2 (permalink)  
Old 07-06-04, 06:00
geoffrey geoffrey is offline
Registered User
 
Join Date: Jun 2004
Posts: 39
SQL statement to get the database name : LIST DATABASE DIRECTORY or LIST NODE DIRECTORY

To know whether the database was created by user or system : LIST TABLES
__________________
geoffrey
- Four J's Development Tools -
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On