SQL Server 2005 上 2000 兼容模式下的 READ_COMMITTED_SNAPSHOT?
在调查我认为与锁升级相关的问题并认为 READ_COMMITTED_SNAPSHOT 将是解决方案时,我检查了它是否已启用。令我惊讶的是,数据库的兼容性级别为 80(SQL Server 2000,我是新来的,似乎没有人或文档知道原因!)。
但READ_COMMITTED_SNAPSHOT是2005年新增的。那么即使启用了它,在2000兼容模式下运行时有什么影响吗?
While investigating a problem I believed to be related to lock escalation and thinking that READ_COMMITTED_SNAPSHOT would be the solution, I checked whether it was already enabled. To my surprise, the database had compatibility level 80 (SQL Server 2000, and I'm new here, and nobody or document seems to know why!).
But READ_COMMITTED_SNAPSHOT was new in 2005. So even though it's enabled, does it have any affect when running in 2000 compatibility mode?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
兼容模式是指向后模式下可用的功能。任何新功能都将不受影响地运行。例如,您可以将兼容模式设置为 80 并使用旧的外连接语法,但同时您可以创建一个 Service Broker 队列,它将运行得很好。
快照隔离是一项新功能,可在向后兼容的数据库中工作,不受影响。
The compatibility mode refers to features available in the backaward mode. Any new feature will run unaffected. For instance you can set the compatibility mode to 80 and have the old outer join syntax, but at the same time you can create a Service Broker queue and it will run just fine.
Snapshot isolation is a new feature and works in backward compatible databases unaffacted.