By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,557 Members | 1,068 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,557 IT Pros & Developers. It's quick & easy.

database name

P: n/a
I have the following simple question:

Once connected to a database (possibly with an alias), how can I get
the actual database name?

Nov 12 '05 #1
Share this Question
Share on Google+
3 Replies

P: n/a
Special Register current server
eg. db2 values current server


Nov 12 '05 #2

P: n/a
In addition to Joachim is idea, You can also do the following
db2 connect
db2 get connection state

Nov 12 '05 #3

P: n/a
Joachim's idea works great...
Thank you

db2 connect, however, gives you the alias you used to connect.

Nov 12 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.