Article View: borland.public.cppbuilder.database.ado
Article #4625Re: A problem about ADOQuery->ExecSql()
From: Jimmy
Date: Fri, 09 Nov 2001 00:53
Date: Fri, 09 Nov 2001 00:53
40 lines
2267 bytes
2267 bytes
Hi,Steve!
The version of ADO I'm using is "2.60.6526.0", maybe this is the
reason you said.But the strange thing is I still can do "select..."
operation by ADOQuery1->Open() after a Open operation has been done,but only
ExecSql() will not be work!How to resolve it?
Jimmy Lu China
Jimmy@chinafrida.com
"Steve Love" <steve.love2@virgin.net> wrote in message
news:20011108.8365839@sl.engineering...
> Hi,everyone!
> In my application,I select some records from a table by
> ADOQuery1->Open(),it's ok.And then,I'll use delete some records from a
> table, so I cleared the sql text by ADOQuery1->SQL->Clear(),and reassign
the
> sql text "delete from TABLE1 ...",and then use the ADOQuery1->ExecSQL()
to
> delete the records,but it doesn't work,what's the reason?
> But if I delete the records by another new query ADOQuery2,it's
will
> be ok.But all the properties of ADOQuery1 and ADOQuery2 are the same.
why?
> Thanks!
What version of ADO are you using?
(check the version of $Program Files\common files\system\ado\msado15.dll)
The reason I ask is because I am experiencing strange lifetime behaviour
when re-using a TADOQuery component with MDAC 2.6 and above, for code
which
works fine in MDAC 2.52 and below.
> Jimmy Lu China
> Jimmy@chinafrida.com
Steve
Technical Details
Message-ID:
<3beb28c1$1_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnewsReferences:
<3be9e9d5_2@dnews> <20011108.8365839@sl.engineering>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,9370de4157e2e5b7 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2001-11-08 17:01:58 PST Reply-To: "Jimmy" <jimmy@chinafrida.com> From: "Jimmy" <jimmy@chinafrida.com> Newsgroups: borland.public.cppbuilder.database.ado References: <3be9e9d5_2@dnews> <20011108.8365839@sl.engineering> Subject: Re: A problem about ADOQuery->ExecSql() Date: Fri, 9 Nov 2001 08:53:06 +0800 Lines: 42 Organization: Chinafrida.com 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: 61.153.23.90 Message-ID: <3beb28c1$1_1@dnews> X-Trace: dnews 1005267137 61.153.23.90 (8 Nov 2001 16:52:17 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews