Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / April 2006

Tip: Looking for answers? Try searching our database.

How to obtain the schema from a JDBC Connection ?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
apattin - 31 Mar 2006 02:41 GMT
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
Knut Stolze - 03 Apr 2006 09:52 GMT
> 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.

Signature

Knut Stolze
DB2 Information Integration Development
IBM Germany

apattin - 03 Apr 2006 17:06 GMT
Thanks! I can do that.

Alejandrina
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.