M
mttc
I have form that executes heavy Stored Procedure on sql 2000.
I want to add STOP button, to cancel the process.
I try to abort the thread. But this action not stops the process
Immediately. It’s take a long time until query cancel.
In the Query Analyzer I can kill the process at once
by disconnecting the window, it’s cause also to cancel the query.
How I can do something like from .NET code?
I try close Connection from Main thread, and nothing happened?
I want to add STOP button, to cancel the process.
I try to abort the thread. But this action not stops the process
Immediately. It’s take a long time until query cancel.
In the Query Analyzer I can kill the process at once
by disconnecting the window, it’s cause also to cancel the query.
How I can do something like from .NET code?
I try close Connection from Main thread, and nothing happened?