Code: Select all
procedure RunQuery;
begin
qryTest.Active := False;
qryTest.NonBlocking := True;
if not qryTest.Prepared then
begin
qryTest.Prepare;
end;
qryTest.Active := True;
while qryTest.Executing do
begin
Sleep(100);
Application.ProcessMessages;
end;
end;
procedure CancelQuery;
begin
if qryTest.Executing then
begin
qryTest.BreakExec;
end;
end;
My configuration:
Oracle Enterprise 8.1.7
ODAC with Net Option (Last version with a bug fix for Oracle Fetch out sequence, that Oleg sent me last week)
BDS 2006.