Closed Colucho closed 2 years ago
@Colucho You can add "QueryTimeout=30;" in connection string to cancel the query execution after 30 seconds. For more info about this keyword, check this doc. Thanks.
@bbigras thanks for your answer.
It wouldn't solve my problem. That will make it impossible to execute queries of more than 30 seconds.
I will try to explain better. I can have queries of a few seconds or several minutes. I would need to cancel or destroy the query whenever I want.
For instance: I execute a query that takes 2 minutes. After 20 seconds or x seconds, I want to stop it or destroy it. (before query ends) would that be possible?
Thanks again
@Colucho No that is not possible. You have to kill the running application and restart it. Thanks.
Hi, i would need to stop a query that takes a lot of time.
How can i stop the query before ended?
Thanks