Can I write SQL queries using DELPHI, dbgo DB components and a SQL Server database server which are limited in respect to the process time ?
Like
select * from table where ......
and process_time_limit = 5 sec ?
Better you give me 10% of the rows within a time limit instead of waiting hours for the complete query dataset
ADO components:
I would give a try to the asynchronous data fetch. When you’d execute the query, you’ll remember when you’ve started and every time the
OnFetchProgressevent fires, you’ll check if theEventStatusis still inesOKstate and check the time elapsed from the query execution. If it elapsed, you might cancel data fetch by using theCancelmethod on your dataset.I meant to use something like the following (untested) pseudocode: