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 880E4329E4F for ; Thu, 23 Sep 2004 08:25:48 +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 92968-05 for ; Thu, 23 Sep 2004 07:25:41 +0000 (GMT) Received: from hogranch.com (hogranch.com [66.117.128.240]) by svr1.postgresql.org (Postfix) with ESMTP id C0E47329C89 for ; Thu, 23 Sep 2004 08:25:40 +0100 (BST) Received: from porker (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with SMTP id i8N7PZc05921 for ; Thu, 23 Sep 2004 00:25:35 -0700 Message-ID: <025a01c4a13e$8459f9f0$0200a8c0@hogranch.com> From: "John R Pierce" To: References: <414CB84A.2050107@opencloud.com> <415218FC.9010801@opencloud.com> Subject: detecting SQL system Date: Thu, 23 Sep 2004 00:25:35 -0700 Organization: Graphics Control MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean 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/161 X-Sequence-Number: 11051 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 ??? So, I'm curious, are there any SQL standard methods of doing this? Is the information_schema any part of the standard, i.e. could we SELECT character_value FROM information.schema.sql_implementation_info WHERE implementation_info_name = 'SERVER NAME'; ? Or do we have to poke around at each of these DBMS servers and figure out whats unique about them ?