Re: detecting SQL system

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: detecting SQL system
Дата
Msg-id 41527DFF.8040905@opencloud.com
обсуждение исходный текст
Ответ на detecting SQL system  ("John R Pierce" <pierce@hogranch.com>)
Список 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

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: "John R Pierce"
Дата:
Сообщение: detecting SQL system
Следующее
От: "abhishekc"
Дата:
Сообщение: JDBC DRIVER FOR HANDHELDS