🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TADOQuery Timeout always 30 sec ?

#5151
From: chenjm
Date: Thu, 26 Jul 2001 04:45
21 lines
1345 bytes
try it:

//define a class inherit from TADOQuery
//
class TADOQuery2: public TADOQuery
{
public:
    TADOQuery2(TObject *object):TADOQuery(object)
    {
        CommandTimeout= 120;
    }
};

//Create a Query object

TADOQuery2 *myQuery = new TADOQuery2(Application);
myQuery->Connection = ADOConnection1; //or other TADOConnection object

myQuery->SQL = "SELECT * FROM myTable";

...
Technical Details
Message-ID: <3b5fa04f$1_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!128.230.129.106!news.maxwell.syr.edu!intgwpad.nntp.telstra.net!intgwlon.nntp.telstra.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews
References: <3b3c213b$1_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,c437c2e3facd12a8
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2001-07-25 21:53:33 PST
Reply-To: "chenjm" <chenjm@netease.com>
From: "chenjm" <chenjm@netease.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3b3c213b$1_2@dnews>
Subject: Re: TADOQuery Timeout always 30 sec ?
Date: Thu, 26 Jul 2001 12:45:37 +0800
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
NNTP-Posting-Host: 211.100.71.152
Message-ID: <3b5fa04f$1_1@dnews>
X-Trace: dnews 996122703 211.100.71.152 (25 Jul 2001 21:45:03 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!128.230.129.106!news.maxwell.syr.edu!intgwpad.nntp.telstra.net!intgwlon.nntp.telstra.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews