🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

How to test an ADO connection?

#5695
From: Mike
Date: Wed, 14 Mar 2001 15:57
10 lines
1225 bytes
How can I programmatically test a TADOQuery connection in a way that will
not cause my app to hang while testing?

If I use TADOQuery->Open(), I have to wait for the server to time out.  What
I'm looking for is a quick check of the connection, the same as the 'Test
Connection' button the the Connection String setup dialog.

TIA,

Mike
Technical Details
Message-ID: <3aaf95ab$1_2@dnews>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-hog.berkeley.edu!ucberkeley!cyclone.bc.net!logbridge.uoregon.edu!hammer.uoregon.edu!feed.textport.net!news.bnb-lp.com!bornews.borland.com!dnews!207.89.194.94

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,2adbbb2efcc2c953,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2001-03-14 08:11:22 PST
From: "Mike" <mjk111@ameritech.net>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: How to test an ADO connection?
Date: Wed, 14 Mar 2001 10:57:51 -0500
Lines: 12
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6700
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
NNTP-Posting-Host: 207.89.194.94
Message-ID: <3aaf95ab$1_2@dnews>
X-Trace: 14 Mar 2001 08:00:43 -0800, 207.89.194.94
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-hog.berkeley.edu!ucberkeley!cyclone.bc.net!logbridge.uoregon.edu!hammer.uoregon.edu!feed.textport.net!news.bnb-lp.com!bornews.borland.com!dnews!207.89.194.94