Article View: borland.public.cppbuilder.database.ado
Article #6080TADOQuery::SQL->Add opens TADOConnection
From: Erba Andrea
Date: Fri, 10 Nov 2000 12:36
Date: Fri, 10 Nov 2000 12:36
14 lines
1428 bytes
1428 bytes
Hello, in using ADOExpress components.
I work with a TADOConnection and a TADOQuery * q linked to it.
If the connection is closed and I set q->SQL->Add("SELECT ..") the
component
activates the connection raising an error if the server isn't
reachable.
Also if I clean the ConnectionString, it restores the old string and
forces the connection!
I know that it's possible to set the sql property just before executing
it,
but I would like to know the reasons why the object needs to access the
database at this time.
Thank you !
andrea
Technical Details
Message-ID:
<3A0BEBDB.28B0F6BE@tin.it>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-01!supernews.com!newshub2.rdc1.sfba.home.com!news.home.com!xfer10.netnews.com!netnews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,5540f8e169d5dc73,start X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2000-11-10 04:36:43 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-01!supernews.com!newshub2.rdc1.sfba.home.com!news.home.com!xfer10.netnews.com!netnews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!not-for-mail From: Erba Andrea <andrea.erba@tin.it> Newsgroups: borland.public.cppbuilder.database.ado Subject: TADOQuery::SQL->Add opens TADOConnection Date: Fri, 10 Nov 2000 13:36:43 +0100 Organization: Another Netscape Collabra Server User Lines: 15 Message-ID: <3A0BEBDB.28B0F6BE@tin.it> NNTP-Posting-Host: 212.171.84.116 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.73 [en] (Windows NT 5.0; U) X-Accept-Language: en