467,153 Members | 1,180 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,153 developers. It's quick & easy.

How to obtain the schema from a JDBC Connection ?

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
  • viewed: 1861
Share:
2 Replies
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
Thanks! I can do that.

Alejandrina

Apr 3 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Nils Valentin | last post: by
5 posts views Thread by Steffen | last post: by
oll3i
5 posts views Thread by oll3i | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.