Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Delphi 2.0 and Oracle

Re: Delphi 2.0 and Oracle

From: Helmut Hahn <Helmut.Hahn_at_bitoek.uni-bayreuth.de>
Date: 1998/03/02
Message-ID: <34FA771E.A79AFE3F@bitoek.uni-bayreuth.de>#1/1

Elie Tordjman wrote:

> Hi. I've created several applications in Delphi that access data on
> Oracle7 tables scattered across several servers. It works wonderfully
> and I've managed to impress everyone.
>
> All these applications also come with a generic "Query Tool" that
> allows
> users to do their own queries. Sometimes, though, they will experiment
>
> with a Select statement that can take forever.
>
> Does anybody know how I would go about allowing the user to "Cancel"
> the
> execution of the query, like SQL Plus does?
>
> Query objects in Delphi have an event called OnServerYield, but it
> never
> gets triggered. Does something need to be done on the server side?
>
> Any help would be great. Thanks.

You could at least Close the Database Component the TQuery belongs to. That means in the OnClick of the button
you code

Database->Close();
Database->Open();

Thus you should provide a new TDatabase Component only for the SQL-Tool.

Hope this helps!

Helmut Received on Mon Mar 02 1998 - 00:00:00 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US