Page 1 of 1
Thread SQL Icon
Posted: Mon 30 Jan 2012 21:33
by wjm4
Is there a way to suppress the SQL working icon when you have a query running in a background thread? My query polls every 30 sec and it will put the working sql icon on the screen every time it executes.
Posted: Tue 31 Jan 2012 09:11
by AlexP
Hello,
For preventing cursor changing at queries executing, you can either not use the UniDACVcl module or set the ChangeCursor global variable (declared in the DBAccess module) to False.
Posted: Tue 31 Jan 2012 14:54
by wjm4
could you provide a code snippet? Would I need to go into the unidac source files and change the code?
Posted: Wed 01 Feb 2012 09:55
by AlexP
Hello,
You don't need to edit the source code. It's enough, for example, to set ChangeCursor := False in the initialization section before query opening or globally.
Code: Select all
uses .., DBAccess;
//before query opening
ChangeCursor := False;
Query.open;