Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Interrupting a stored procedure
Message
De
26/04/2004 11:45:43
 
 
À
26/04/2004 10:52:55
Keith Payne
Technical Marketing Solutions
Floride, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Divers
Thread ID:
00898113
Message ID:
00898204
Vues:
18
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform