Article View: borland.public.cppbuilder.database.ado
Article #3791Re: HELP! Non ADO for Interbase / Firebird
From: Adrian Stokes
Date: Sun, 23 Jun 2002 11:19
Date: Sun, 23 Jun 2002 11:19
35 lines
2239 bytes
2239 bytes
The Quey componet is the preferred way of accessing data in
client/server databases. The sql Property in the object inspector can
contain the SQL statements you wish to execute, this property at
design or runtime.
To set value at design time just click the elipse button to enter the
string list editor.
At runtime, you will need to make sure that you clear any previous
queries. e.g
Query1->SQL->Clear();
Query1->SQL->Add("select * from some table");
Query1->Open();
Sql statements can be executed with either the Open() or the
ExecSQL() method. Usually statements that contain SELECT use the Open
method, while sql staments like insert, update or delete need to use
the ExecSQL() method. eg
Query1->SQL->Clear();
Query1->SQL->Add(" insert into register");
Query1->SQL->Add("(Surname, Forenames)");
Query1->SQL->Add("values('Betcher','Rob')");
Query1->ExecSQL();
Hope this helps.
On Sat, 22 Jun 2002 20:39:17 -0500, "R. Betcher" <betch23@hotmail.com>
wrote:
>Can anyone point me in the best way to make SQL calls on an interbase /
>firebird database without using ADO. Which Data access tools? We were
>going to use the Tquery control to connect and make calls. Is this the best
>tool to use? If not could anyone email an example of the best technique for
>local and networked Interbase databases?
>
Technical Details
Message-ID:
<jlabhuok3ants4fonel2p9qj630h354iju@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-01!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnewsReferences:
<3d152684$1_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,ed3ab32f1f130125 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-06-23 04:30:56 PST From: Adrian Stokes <adrian_stokes@blueyonder.co.uk> Newsgroups: borland.public.cppbuilder.database.ado Subject: Re: HELP! Non ADO for Interbase / Firebird Date: Sun, 23 Jun 2002 12:19:58 +0100 Reply-To: adrian_stokes@blueyonder.co.uk Message-ID: <jlabhuok3ants4fonel2p9qj630h354iju@4ax.com> References: <3d152684$1_1@dnews> X-Newsreader: Forte Agent 1.91/32.564 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 62.31.214.200 X-Trace: dnews 1024831411 62.31.214.200 (23 Jun 2002 04:23:31 -0700) Lines: 36 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-01!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews