Applies to: Clarion 6 and later with the MSSQL driver (the thread was Clarion 7.3); the same mechanism exists in the ODBC driver.
Problem
A stored procedure started with PROP:SQL takes minutes. Queries on another thread, even with a different owner string for their dummy table, wait until it finishes: the application shares one connection to the server.
Solution
Tell the driver to open a connection per thread with the driver string /BUSYHANDLING=2 (set it in the dictionary's driver options or at run time through PROP:DriverString; see the driver help for the values). The original poster confirmed it did exactly what was needed.
Caveats
- With several connections, a LOGOUT / COMMIT on one connection and updates on another can block each other. Keep transactions inside the stored procedure where possible.
- The alternative offered in the thread is the ODBC API's asynchronous execution from your own code, with polling for completion.
Today (2026)
The driver string still exists. Check the current Database Drivers help for the BUSYHANDLING values before relying on a remembered number.
Sources: Jane F. (Jun 2011, the question and the answer that worked), Dennis E., Shankar (Jun 2011) in softvelocity.clarion.databasedrivers.