Is it possible to show the progress of an SQL query in Delphi? For example I have a long complicated query in Firebird and I want to show the user how much percentage of the query has already been completed by the system. Are there any class or component capable of doing this?
Share
AFAIK, there is no ability to measure the query execution time and to show the progress indicator. DBMS does not provide such information.
But you can show “wait” dialog with ability to cancel the query. We do that with AnyDAC. Set ResourceOptions.CmdExecMode to amCancelDialog and drop the TADGUIxFormsAsyncExecuteDialog component. Then user will have an ability to cancel the query.