We're running SQL Server 2005 Enterprise SP3, and I'm trying to enable Row Versioning on a new database running in sql server 2005 mode.
Query (against master database):
ALTER DATABASE pod-moodle SET READ_COMMITTED_SNAPSHOT ON
Result:
Msg 102, Level 15, State 1, Line 1
Incorrect syntax near '-'.
Msg 195, Level 15, State 5, Line 1
'READ_COMMITTED_SNAPSHOT' is not a recognized SET option.
Any ideas? I've triple-checked the master database and the pod-moodle database, they are both running in 2005 mode.
If you use non-aplhanumeric characters in identifiers, then you need to delimit with [ and ]