🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #2208

Re: Detecting Connection Status

#2208
From: yachun,xu
Date: Wed, 15 Oct 2003 20:13
17 lines
1475 bytes
just use try ...catch  block
"John McDonald" <mcdonald@airtalk.com> wrote in message
news:3ec3b29d$1@newsgroups.borland.com...
> Hi,
>
> Is there a good way to determine the connection status using
> ADOConnection object??  I tried an experiment where I
> connected to the database, unplugged the patch cable to the
> DB server (simulated network outage), then checked the status
> of ADOConnection1->Connected which returned true.  Do
> I have to submit a query to check the connection to the database??
>
> Thx,
>
> John
>
>
Technical Details
Message-ID: <3f8daa65@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newspeer1.nwr.nac.net!newsfeed.wirehub.nl!news.kweb.on.ca!newsgroups.borland.com!not-for-mail
References: <3ec3b29d$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,f1b2179587ed5f04
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2003-10-15 13:31:42 PST
Reply-To: "yachun,xu" <ekong_gzb@21cn.net>
From: "yachun,xu" <ekong_gzb@21cn.net>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3ec3b29d$1@newsgroups.borland.com>
Subject: Re: Detecting Connection Status
Date: Thu, 16 Oct 2003 04:13:23 +0800
Lines: 19
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
NNTP-Posting-Host: 218.20.55.116
Message-ID: <3f8daa65@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1066248805 218.20.55.116 (15 Oct 2003 13:13:25 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newspeer1.nwr.nac.net!newsfeed.wirehub.nl!news.kweb.on.ca!newsgroups.borland.com!not-for-mail