Stop SQL query execution from .net Code

NaveenBhat picture NaveenBhat · Jan 24, 2011 · Viewed 23.7k times · Source

I'm executing one stored procedure from the '.net' code. Since there is a lot of data, it is taking too much time to execute. Is there any way to stop this execution from the c# code?

In other words, if we execute the query from database itself, there is a option to stop its execution but in the code is it possible?

Answer