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/...eMetaData.html
retrievable via Connection#getMetaData(). Works fine for Oracle, no idea
about DB2.
Ronny