Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQL Azure and READ_COMMITTED_SNAPSHOT

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?

like image 338
Thomas Amar Avatar asked Jan 10 '10 12:01

Thomas Amar


1 Answers

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.

like image 174
Matthew Steeples Avatar answered Oct 02 '22 14:10

Matthew Steeples