How programmatically enable READ COMMITTED SNAPSHOT in SQL Server?
问题 I need to programmatically enable READ COMMITTED SNAPSHOT in SQL Server. How can I do that? 回答1: I recommend switching to single-user mode first. That ensures you're the only connection. Otherwise, the query might be suspended. From: http://msdn.microsoft.com/en-us/library/ms175095.aspx When setting the READ_COMMITTED_SNAPSHOT option, only the connection executing the ALTER DATABASE command is allowed in the database. There must be no other open connection in the database until ALTER DATABASE