X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 6DF00329E6B for ; Thu, 23 Sep 2004 08:41:05 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 97583-10 for ; Thu, 23 Sep 2004 07:40:57 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 68D82329E53 for ; Thu, 23 Sep 2004 08:40:57 +0100 (BST) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=opencloud.com) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1CAODh-0004uP-00; Thu, 23 Sep 2004 19:40:49 +1200 Message-ID: <41527DFF.8040905@opencloud.com> Date: Thu, 23 Sep 2004 19:40:47 +1200 From: Oliver Jowett User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: John R Pierce Cc: pgsql-jdbc@postgresql.org Subject: Re: detecting SQL system References: <414CB84A.2050107@opencloud.com> <415218FC.9010801@opencloud.com> <025a01c4a13e$8459f9f0$0200a8c0@hogranch.com> In-Reply-To: <025a01c4a13e$8459f9f0$0200a8c0@hogranch.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200409/162 X-Sequence-Number: 11052 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