Applies to: Clarion 8.0.9661 with SQL Server 2005 to 2012, as reported in 2013.
Problem
A developer wanted a definitive set of driver options to end the MSSQL busy errors his customers saw. He had seen /BUSYRETRIES=200 /MULTIPLEACTIVERESULTSETS=TRUE /BUSYHANDLING=2 and also /BUSYHANDLING=2 /BUSYRETRIES=500 /ISOLATIONLEVEL=1.
Solution
- Set
/BUSYHANDLING=2. Three posters said it is the key and it was enough for them. - Put it on the dummy PROP:SQL files too. One poster's busy errors ended once he added it to the dummy file, for example
DRIVER('MSSQL','/TURBOSQL=TRUE /BUSYHANDLING=2'). - Or set
sql_results{prop:busyhandling} = 2and open the file in code on the base thread of the main frame as early as possible. Do not close it, so the setting stays in effect. - Leave MARS out unless you use multiple active result sets. It does little harm but uses system resources.
- The default isolation level, read committed, was advised unless you need another. Fixed retry counts were criticised.
Caveats
- Apply the option to all tables. The original poster saw blocked processes when only some tables had it.
- A process run as a Windows service still blocked SQL at two customer sites. Another poster advised trapping all message, halt, stop and assert dialogs with the hook procedures, including those from the RTL and the drivers.
- That service problem was not settled in the thread.
Today (2026)
The option names likely still apply (not re-tested). Check them against the current driver help.
Sources: Neil P. (Jul 2013, the question and the Sep 2013 update), John S., Dennis E., Graham D., Markus S. (Jul to Sep 2013) in softvelocity.clarion.databasedrivers.