REQ: How do I cancel a SQL query?

  • Thread starter Thread starter The Whistler
  • Start date Start date
T

The Whistler

I have an app that users can search through a support knowledge base.
If a user enters criteria that would cause the app to freeze while it
is trying to gather the data, I would like to program a Cancel Query
button to either close the command object or close the connection
object. This would give the user the ability to cancel the execution
and refine the search criteria.

I am programming this app using 2005 Beta 2 in VB.net.
Any ideas?

Thanks!
 
i think, if you dont use threads, thats imposible, because the program freeze
all until its get a response. may be putting a timeout... or in the database
always put a select top x, this way always you have the query controlled...
 
Thank you for this good advise!


i think, if you dont use threads, thats imposible, because the program freeze
all until its get a response. may be putting a timeout... or in the database
always put a select top x, this way always you have the query controlled...
 
Back
Top