Re: Show Databases via ODBC

From: Szymon Guz <mabewlun(at)gmail(dot)com>
To: bret_stern(at)machinemanagement(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Show Databases via ODBC
Date: 2012-03-07 20:00:41
Message-ID: CAFjNrYtZjrYOGD+GF4yeCpGMN8tLUYUdhO6-xqwOXaRq_7d9xg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 7 March 2012 20:36, Bret Stern <bret_stern(at)machinemanagement(dot)com> wrote:

> Is it possible through ODBC to connect to a PostgreSql
> server and query for the available databases?
>
> When our application upgrades, we typically create a
> new database. I want to design a form which allows
> the user to select the old database, which then
> migrates data to the new (currently connected)
> database.
>
> Regards
>
>
>
Hi,
I think this query would be helpful:

select datname from pg_database;

regards
Szymon

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message John R Pierce 2012-03-07 20:03:36 Re: Automated Backup Script Help (Linux)
Previous Message Bret Stern 2012-03-07 19:36:04 Show Databases via ODBC