I want to do 5 seconds after close the query. and give an error. but "CommandTimeout" does not work. always set to infinite. The query takes 2 minutes.
Thank You
MyDAC 9.3
Code: Select all
try
MyQuery1.CommandTimeout:=5;
MyQuery1.SQL.Clear;
MyQuery1.SQL.Add('SELECT * FROM test''');
MyQuery1.Open;
except
showmessage('error');
end;