John R Pierce wrote:
> One of the Java developers in my group asked me today if there was any
> reliable and portable way he could query JDBC to find out what database
> he was connected to, Postgres vs Oracle vs TimesTen vs ???
connection.getMetaData().getDatabaseProductName()
There are similar methods to get version and driver info.
-O