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

How to obtain the schema from a JDBC Connection ?

P: n/a
Hi all,

Does anyone know how to get the schema name given a JDBC Connection
object? I see that I can do "toString" and pick the "User=" substring,
but smells of a hack. :)

Thanks,

Alejandrina

Mar 31 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
apattin wrote:
Hi all,

Does anyone know how to get the schema name given a JDBC Connection
object? I see that I can do "toString" and pick the "User=" substring,
but smells of a hack. :)


Query the CURRENT SCHEMA special register.

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Apr 3 '06 #2

P: n/a
Thanks! I can do that.

Alejandrina

Apr 3 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.