sqlquerythread RunSQL method
Return to Introduction  Previous page  Next page
Applies to
acSQLQueryThread component.  

function RunSQL: Boolean; // returns False if busy or WaitTimeout expired  

The RunSQL method opens the dataset (or any its descendant) specified in Query property. It just calls Open method of specified Query in the separate thread, without suspending other processes of your application.  
To retrieve results after opening the dataset — use OnDone event.  
tip RunSQL method returns True if successful or False if thread is busy (already processing another query) OR WaitTimeout is expired.  

See also
Query, Priority, WaitThread and WaitTimeout properties;  
OnDone and OnException events;  
Abort method.