REQ: How do I cancel a SQL query?

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!
 
G

Guest

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...
 
T

The Whistler

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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top