SQL Command

  • Thread starter Thread starter Darin
  • Start date Start date
D

Darin

I have a sqlcommand running and have the timeout set to 3600 seconds. Is
there a way, while it is running before the timeout has occured, to stop
it?

Darin
 
Darin said:
I have a sqlcommand running and have the timeout set to 3600 seconds.
Is there a way, while it is running before the timeout has occured,
to stop it?

Call the Cancel method. In order to be able to do it, you must execute the
query in another thread, either by explicitly creating the thread or by
starting the query from one of the SqlCommand's Begin* methods.


Armin
 
Darin said:
I have a sqlcommand running and have the timeout set to 3600 seconds.
Is there a way, while it is running before the timeout has occured,
to stop it?

Call the Cancel method. In order to be able to do it, you must execute the
query in another thread, either by explicitly creating the thread or by
starting the query from one of the SqlCommand's Begin* methods.


Armin
 

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

Back
Top