X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 48D19D1DC5D for ; Thu, 18 Mar 2004 20:45:44 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 14332-04 for ; Thu, 18 Mar 2004 16:45:45 -0400 (AST) Received: from rwcrmhc13.comcast.net (rwcrmhc13.comcast.net [204.127.198.39]) by svr1.postgresql.org (Postfix) with ESMTP id 495C5D1D2A0 for ; Thu, 18 Mar 2004 16:45:30 -0400 (AST) Received: from sjdev01 (c-24-20-228-102.client.comcast.net[24.20.228.102]) by comcast.net (rwcrmhc13) with SMTP id <20040318204344015006mnbhe>; Thu, 18 Mar 2004 20:43:46 +0000 Received: by localhost with Microsoft MAPI; Thu, 18 Mar 2004 12:52:10 -0800 Message-ID: <01C40CE7.D39FA410.jorgens@coho.net> From: Steve Jorgensen Reply-To: "jorgens@coho.net" To: "pgsql-odbc@postgresql.org" Subject: Re: ODBC Dies after Dialup-network reconnects Date: Thu, 18 Mar 2004 12:51:30 -0800 X-Mailer: Microsoft Internet E-mail/MAPI - 8.0.0.4211 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/67 X-Sequence-Number: 3869 I'm no expert with PostgreSQL ODBC in particular, but I have never used any other ODBC driver that could maintain an ODBC connection when the physical connection was closed. If you need something like that, I think you will need to open your own ADO connections in code and close them after each interaction so they can be reopened cleanly again later. Whether Access is helpful as a front-end in this configuration is a good question. On Thursday, March 18, 2004 9:28 AM, Thomas Quiring [SMTP:tom@gsacomp.com] wrote: > Hello All, > > Here's the problem.. we have clients (MS Access) dialing out to the internet and sending data to a Postgres server. Everything works fine until you disconnect the internet and reconnect it. After reconnection to the internet no ODBC connections work ("ODBC Call Failed"). If we exit Access and then try it again it works. > > It seems like access or the odbc is caching the socket connections, or maybe pooling the connections/socket. > > Is there any way we can refresh our ODBC connection to Postgres without restarting access? > > If any brave soul wants to look through my odbc log files then let me know and I'll create a test and forward them. > > Any help is appreciated, > > Tom