![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
Hello, Is there a way to stop stored procedure execution upon user requests. A stored procedure is called from APS.NET page. Actually a new thread is started that calls sp, the page is then reloaded every 5 seconds and progress bar is displayed. Usually it takes a few seconds to 10 mins to execute due to the task-intensive nature of the process. Users want to be able to click cancel button to stop a process. How can client app notify SQL Server to kill specific sp? I anticipate people replying that we should really optimize queries in sp. However, Almost always SP must do full table scans and lots of inserts. SP has been optimized already. We just need functionality to cancel sp from the browser. Please help. Thank you! |
![]() |
| Thread Tools | |
| Display Modes | |
| |