sql-server - SQL Server Cancel Execution in SSMS vs Kill (SPID)
问题描述
What is the difference between cancel execution in SSMS and using kill(spid). In testing, I've discovered that when you cancel an execution, using kill (spid) with statusonly returns the error that the rollback operation is not in progress.
It's probably applicable to all recent versions of SQL Server, but in my case I'm using 2017. SSMS is V18.
解决方案
KILL
will rollback a transaction, cancelling the execution of a command will stop the query at the soonest opportunity and will not automatically roll it back.
推荐阅读
- xcode - coreml 推理结果与 cpu 和 gpu 不同
- mongodb - MongoDB + Express 如何优化代码?
- java - RatingBar 中的星数看起来错误
- node.js - 如何将 webpack env 传递给 nodejs 应用程序?
- mongodb - mongodb update document method
- javascript - 如何从 ReactVis 系列图中选择 VerticalBarSeries?
- html - 如何在 xslt 2.0 中执行不区分大小写的属性名称
- docker - Docker 私有注册表镜像上传
- java - 选择项目后组合框中的图像消失
- data-structures - 如何使用联合查找数据结构对字符串进行分组?