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
 
Back
Top