Re: Get "user" tables
- From: Ronny Schuetz <Usenet.r96@xxxxxxxxxxxxx>
- Date: Tue, 29 Apr 2008 19:39:17 +0200
Hi,
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.
Ronny
.
- Follow-Ups:
- Re: Get "user" tables
- From: Arne Vajhøj
- Re: Get "user" tables
- References:
- Get "user" tables
- From: WP
- Get "user" tables
- Prev by Date: Re: What is the Latest JVM Specification Document? The 2nd Edition?
- Next by Date: Re: Questions about drawing on Canvas
- Previous by thread: Re: Get "user" tables
- Next by thread: Re: Get "user" tables
- Index(es):
Relevant Pages
|