SQL Azure and READ_COMMITTED_SNAPSHOT

那年仲夏 提交于 2019-12-07 04:14:48

问题


I would like to set READ_COMMITTED_SNAPSHOT to ON on my SQL Azure database, but the following code, which works with other versions of SQL Server, is not supported in Azure:

ALTER DATABASE [database_name]
SET READ_COMMITTED_SNAPSHOT ON
GO

First question: Is it still a good idea to set READ_COMMITTED_SNAPSHOT to ON in SQL Azure (or whatever achieves the same result)? My intention is not to lock records when they are just being read, in order to improve performance.

Second question: If it is a good idea, what's the Azure syntax for doing it?


回答1:


From what I can tell based on this MSDN article the setting you are after is on by default and cannot be changed. More details about the Isolation Levels themselves can be found here.



来源:https://stackoverflow.com/questions/2036986/sql-azure-and-read-committed-snapshot

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!