By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,385 Members | 1,114 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,385 IT Pros & Developers. It's quick & easy.

REQ: How do I cancel a SQL query?

P: n/a
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!
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies

P: n/a
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...

"The Whistler" wrote:
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!

Nov 21 '05 #2

P: n/a
Thank you for this good advise!
On Thu, 21 Jul 2005 05:49:03 -0700, "Rothariger" <Ro********@msn.com>
wrote:
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...

"The Whistler" wrote:
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!


Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.