Re: How to check if a connection is alive ?

From: Richard Huxton <dev(at)archonet(dot)com>
To: Andreas <maps(dot)on(at)gmx(dot)net>, pgsql-odbc(at)postgresql(dot)org
Subject: Re: How to check if a connection is alive ?
Date: 2004-01-14 09:06:18
Message-ID: 200401140906.19042.dev@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

On Wednesday 14 January 2004 03:29, Andreas wrote:
> Hi,
>
> Access 2000
> Postgresql 7.4.1
> newest PG-ODBC
>
> how can I check if a DAO- or ADO-connection is still alive ?
> I'd like to maintain a connection to a remote PG server within my VBA code.
> It should be opend when the users start the application and closed when
> the app terminates.

You could have a timer that calls a function that just runs "SELECT true" or
similar. If the query fails, you've lost your connection. Is that the sort of
thing you meant?
--
Richard Huxton
Archonet Ltd

In response to

Browse pgsql-odbc by date

  From Date Subject
Next Message Didier Quintard 2004-01-14 12:42:14 ODBC driver on Windows XP Pro
Previous Message Andreas 2004-01-14 03:29:30 How to check if a connection is alive ?