Article View: borland.public.cppbuilder.database.ado
Article #5Re: ADOConnection, ADOTable, ADOQuery Basics
From: Sudesh
Date: Thu, 21 Feb 2008 18:11
Date: Thu, 21 Feb 2008 18:11
21 lines
1707 bytes
1707 bytes
Hi Clayton:
Thank you very much for quick response.
I could not get one thing working. Could you please tell me what's wrong
below:
ADOQuery1->SQL->Clear();
ADOQuery1->Close();
ADOQuery1->SQL->Add("SELECT * FROM marks ");
ADOQuery1->SQL->Add("WHERE student_score > 25");
ShowMessage(ADOQuery1->SQL->Text);
ADOQuery1->Open();
//ADOQuery1->ExecSQL();
ADOQuery1->Active = false;
With this code, I still see all the records in DBGrid instead of records
having score >25.
is ExecSQL() required or Open() and Active is ok?
Sudesh
Technical Details
Message-ID:
<47bdbf12@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<47b97333@newsgroups.borland.com> <47bda663$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,a49b6386b1d150d4 X-Google-Attributes: gid10698b,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Sudesh" <sudeshc@vfemail.net> Newsgroups: borland.public.cppbuilder.database.ado References: <47b97333@newsgroups.borland.com> <47bda663$1@newsgroups.borland.com> In-Reply-To: <47bda663$1@newsgroups.borland.com> Subject: Re: ADOConnection, ADOTable, ADOQuery Basics Date: Thu, 21 Feb 2008 23:41:59 +0530 Lines: 22 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6000.16480 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6000.16545 NNTP-Posting-Host: 59.182.24.168 Message-ID: <47bdbf12@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1203617554 59.182.24.168 (21 Feb 2008 10:12:34 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail