Re: Show Databases via ODBC

From: Bret Stern <bret_stern(at)machinemanagement(dot)com>
To: Szymon Guz <mabewlun(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Show Databases via ODBC
Date: 2012-03-07 21:00:32
Message-ID: 1331154032.2151.7.camel@fedora13
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Works perfect. I'll trap and show only our databases to the user.
all thanks
On Wed, 2012-03-07 at 21:00 +0100, Szymon Guz wrote:
> 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

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2012-03-07 21:01:58 Re: Converting stored procedures from SQL Anywhere to PostGres.
Previous Message Merlin Moncure 2012-03-07 20:49:39 Re: [GENERAL] Altering a table with a rowtype column