Board index » delphi » Cancelling a long running query, D3, MSSQL 6.5

Cancelling a long running query, D3, MSSQL 6.5

Using : Delphi 3, BDE 5.01 and MSSQL 6.5
We want to start a query in a separate thread, giving the user an
opportunity to cancel the query.
Does anyone knows how to accomplish this ??

Kind regards
   W.Entrop

 

Re:Cancelling a long running query, D3, MSSQL 6.5


W.Entrop,

   Unfortunately, there is no way to cancel a running query using the BDE.
Not even in a separate thread.  Check out ODBCExpress, it has a method that
you can cancel a running query.  Perhaps Inprise might work that feature
into a new release of the BDE if enough people request it.

Good luck,
krf

Quote
W.Entrop wrote in message <77d5m7$ns...@forums.borland.com>...
>Using : Delphi 3, BDE 5.01 and MSSQL 6.5
>We want to start a query in a separate thread, giving the user an
>opportunity to cancel the query.
>Does anyone knows how to accomplish this ??

>Kind regards
>   W.Entrop

Re:Cancelling a long running query, D3, MSSQL 6.5


Thanks for the tip and the fast response, ODBC express looks very promising!

Re:Cancelling a long running query, D3, MSSQL 6.5


The architecture of the database network client driver determines whether a
query can be canceled from another thread, not the BDE.  If the network
client driver supports this functionality, you should be able to take
advantage of it in Delphi because the BDE exposes native handles through the
DbiGetProp function.

For example, the Oracle SQL*Net driver supports the "obreak" OCI function
specifically to break queries asynchronously.  I don't know whether the SQL
Server client driver has an equivalent.

V/R
Russell L. Smith

Quote
Kevin Frevert wrote in message <77g483$qb...@forums.borland.com>...
>   Unfortunately, there is no way to cancel a running query using the BDE.
>Not even in a separate thread.

Other Threads