Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-jdbc by date

Next:From: abhishekcDate: 2004-09-23 10:23:08
Subject: JDBC DRIVER FOR HANDHELDS
Previous:From: John R PierceDate: 2004-09-23 07:25:35
Subject: detecting SQL system

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group