Hi,
While trying to create a filegroup of a SQL Server 2008 instance with the following query, we get the following error message:
Query:
ALTER DATABASE MyDBADD FILEGROUP MyDBFileGroup CONTAINS FILESTREAM
Error Message:
Msg 12100, Level 16, State 1, Line 2
ALTER DATABASE failed because FILESTREAM filegroups cannot be added to a database that has either the READ_COMMITTED_SNAPSHOT or the ALLOW_SNAPSHOT_ISOLATION option set to ON. To add FILESTREAM filegroups, you must set READ_COMMITTED_SNAPSHOT and ALLOW_SNAPSHOT_ISOLATION
to OFF.
For this database, the result of "Isolation level" tabl of "DBCC useroptions" command is : read committed snapshot
If I try to change this option off using the following query, the query is running for ever and not getting completed. Kindly suggest how to overcome this issue and create the filegroup on this database.
ALTER DATABASE MyDBSET READ_COMMITTED_SNAPSHOT off
ALTER DATABASE MyDB
SET ALLOW_SNAPSHOT_ISOLATION off