Zahnk you for your advice! It works!
But what about using a remote database? Before i can get such informations i must connect to the db from e.g. the command window an then run the java class!
But i don't like that methode. Is there an other possibility?? JDBC Connection?
Quote:
Originally posted by KezbanB
Hi,
Probably you already know this method but I can tell how I learn database parameters using Java.
I use;
Process p = Runtime.getRuntime().exec("db2cmd /c /w /i db2 get db cfg for <dbname>");
and get the result with BufferedReader.
I would be happy to learn a better method if it's possible (with JDBC or something else).
|