🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

connection->Connected == true ??

#3007
From: newbie
Date: Wed, 22 Jan 2003 19:01
4 lines
1403 bytes
Hello all,

I always evaluate if my ADO->connection is == true before performing a query, however this does not always guarantee that a connection is in fact enabled. If I disconnect a network cable after connecting to a database, the connection->connected still is equal to true. Is there any other means of determining if  a connection is truly connected, short of error handling on a failed query attempt?
Technical Details
Message-ID: <3e2eea88$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-09!supernews.com!newsfeed.gamma.ru!Gamma.RU!news.tele.dk!news.tele.dk!small.news.tele.dk!fr.usenet-edu.net!usenet-edu.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,95c710cdf49de714,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2003-01-22 11:12:03 PST
From: "newbie" <ms_Crack@yahoo.com>
Sender: "newbie" <ms_Crack@yahoo.com>
Reply-To: "newbie" <ms_Crack@yahoo.com>
Subject: connection->Connected == true ??
Newsgroups: borland.public.cppbuilder.database.ado
X-User-Info: 138.11.254.204 138.11.254.204    
X-Forwarded-For: 192.168.151.91
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3e2eea88$1@newsgroups.borland.com>
Date: 22 Jan 2003 11:01:28 -0800
X-Trace: newsgroups.borland.com 1043262088 207.105.83.65 (22 Jan 2003 11:01:28 -0800)
Lines: 5
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-09!supernews.com!newsfeed.gamma.ru!Gamma.RU!news.tele.dk!news.tele.dk!small.news.tele.dk!fr.usenet-edu.net!usenet-edu.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail