Skip to content

Why not interrupting current command on statement close #2039

Closed Answered by David-Engel
RLhereec asked this question in Q&A
Discussion options

You must be logged in to vote

Canceling (interrupting) a command sends a signal to the server to stop processing the current execution. Current close behavior allows server-side processing to complete (by waiting and consuming all results) before closing the connection. If we changed to cancel on close, (1) the behavior would change and (2) the behavior would be inconsistent/indeterminate server-side results of any in-process executions. (There could be any number of T-SQL commands/stored procedures/inserts/updates running in a single execution and the cancel could happen anywhere inside/during that execution.)

Regards,
David

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Jeffery-Wasty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants