🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.multi-tier
Article #617

Re: how to find out a lost communication between client & server

#617
From: Mark Cashman
Date: Wed, 09 May 2001 01:24
32 lines
1758 bytes
Hi, Jerri!

SQL Server times out in that situation; I imagine your query would.
So...

    try
    {
        Query1->Open();
    }
    catch (EDatabaseError &DatabaseError)
    {
        if (TimeOutMessage(DatabaseError.Message))
        {
            ReconnectDatabase();
        };
    };

Obviously you have to figure out what message is a timeout message and
you have to test whether reconnecting to the database in that state is
safe.

I hope this helps.

--
------
Mark Cashman (TeamB - C++ Builder), creator of The Temporal Doorway at
http://www.temporaldoorway.com
- Original digital art, writing, music and more -
C++ Builder / JBuilder Tips and The C++ Builder Programmer's Webring
(Join us!)
http://www.temporaldoorway.com/programming/index.htm
------
Technical Details
Message-ID: <3AF89C5C.3570E6D0@temporaldoorway.com>
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!nntp1.njy.teleglobe.net!teleglobe.net!hub.org!hub.org!PeerFeed.KWeb.on.ca!dnews
References: <3af710e3_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fcd2b,ce83157180cad44b
X-Google-Attributes: gidfcd2b,public
X-Google-ArrivalTime: 2001-05-08 18:28:07 PST
Message-ID: <3AF89C5C.3570E6D0@temporaldoorway.com>
Date: Tue, 08 May 2001 21:24:44 -0400
From: Mark Cashman <mcashman@temporaldoorway.com>
Reply-To: mcashman@temporaldoorway.com
X-Mailer: Mozilla 4.77 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.database.multi-tier
Subject: Re: how to find out a lost communication between client & server
References: <3af710e3_1@dnews>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 24.14.197.193
X-Trace: dnews 989371475 24.14.197.193 (8 May 2001 18:24:35 -0700)
Lines: 34
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!nntp1.njy.teleglobe.net!teleglobe.net!hub.org!hub.org!PeerFeed.KWeb.on.ca!dnews