pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John R Pierce <pierce@hogranch.com>
To: pgsql-jdbc@postgresql.org
Subject: detecting SQL system
Date: Thu, 23 Sep 2004 00:25:35 -0700
Message-ID: <025a01c4a13e$8459f9f0$0200a8c0@hogranch.com> (raw)
References: <414CB84A.2050107@opencloud.com>
	<Pine.BSO.4.56.0409200426450.12765@leary.csoft.net>
	<415218FC.9010801@opencloud.com>
	<Pine.BSO.4.56.0409230211530.25933@leary.csoft.net>

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 ? 




view thread (2+ messages)  latest in thread

Message-ID: <025a01c4a13e$8459f9f0$0200a8c0@hogranch.com>
Permalink:  ../025a01c4a13e$8459f9f0$0200a8c0@hogranch.com/
Also on:    postgresql.org/message-id/025a01c4a13e$8459f9f0$0200a8c0@hogranch.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: pierce@hogranch.com
  Subject: Re: detecting SQL system
  In-Reply-To: <025a01c4a13e$8459f9f0$0200a8c0@hogranch.com>
  References: <414CB84A.2050107@opencloud.com> <Pine.BSO.4.56.0409200426450.12765@leary.csoft.net> <415218FC.9010801@opencloud.com> <Pine.BSO.4.56.0409230211530.25933@leary.csoft.net> <025a01c4a13e$8459f9f0$0200a8c0@hogranch.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox