Re: Get "user" tables
- From: Arne Vajhøj <arne@xxxxxxxxxx>
- Date: Tue, 29 Apr 2008 19:13:03 -0400
Ronny Schuetz wrote:
Hello, I need to communicate with a db2 database from a java program
and this java program needs to check which "user tables" there are. I
[...]
myself. But it is this the best way? The java program doesn't specify
a user upon connection because it's connecting through a local system
account I think. Therefore it cannot perform selection based on
username.
You could check out the Database Metadata:
http://java.sun.com/j2se/1.4.2/docs/api/java/sql/DatabaseMetaData.html
retrievable via Connection#getMetaData(). Works fine for Oracle, no idea about DB2.
It is defined in the JDBC API - DB2 will support it.
Arne
.
- References:
- Get "user" tables
- From: WP
- Re: Get "user" tables
- From: Ronny Schuetz
- Get "user" tables
- Prev by Date: Re: my sql connectivity
- Next by Date: Recommendation on Performance Monitoring Software
- Previous by thread: Re: Get "user" tables
- Next by thread: Synchronous write to same file using different file pointers
- Index(es):
Relevant Pages
|