sqlquerythread TacSQLQueryThread component
Hierarchy Properties Methods Events
Return to Introduction  Previous page  Next page
The TacSQLQueryThread used to Open the SQL queries in separate process, avoiding suspendings of the main application thread.  

How to use?
Just specify TDataSet object any its descendent (i.e: standard TQuery component, or TmySQLQuery by MicroOLAP) in Query property, and call RunSQL method.  
After calling RunSQL method, the component opens a dataset in serparate thread (calls Open method of Query), and allows to retrieve results in OnDone method, if succeed. It opens an SQL query without suspending other parts of your application (i.e: user interface). Also you can specify Priority of this thread in a schedule of system processes.  
To get results of SQL query — use OnDone event. If you wish to terminate thread imediately — use Abort method.  

See also
acThread component.