Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Interrupting a stored procedure
Message
From
26/04/2004 11:45:43
 
 
To
26/04/2004 10:52:55
Keith Payne
Technical Marketing Solutions
Florida, United States
General information
Forum:
ASP.NET
Category:
Databases
Miscellaneous
Thread ID:
00898113
Message ID:
00898204
Views:
19
To use KILL, the login would have to have pretty high priviliges - probably higher than an application should have when connecting to SQL Server.

The problem here is that the current version of ADO.NET does not support a way to make an async call. I suppose that you could spin up another thread but I'm not sure that stopping the calling thread would cause the managed provider to send the proper Attention signal to SQL Server.

-Mike

>>Is it possible in .Net to accept a Cancel button click while a long running stored procedure is in progress, and to then cleanly stop the SQL Server process or similar?
>>
>>TIA,
>>Simon
>
>Simon,
>
>To stop the SQL Server process, use the KILL T-SQL command. See KILL in the SQL Server help for more details.
>
>Also, is your long-running stored procedure executing a lot of commands, or is it waiting on one massive query?
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform