Re: detecting SQL system

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: John R Pierce <pierce(at)hogranch(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: detecting SQL system
Date: 2004-09-23 07:40:47
Message-ID: 41527DFF.8040905@opencloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message abhishekc 2004-09-23 10:23:08 JDBC DRIVER FOR HANDHELDS
Previous Message John R Pierce 2004-09-23 07:25:35 detecting SQL system