Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15889

Unable to create filegroup for filestream implementation on SQL Server 2008 database

$
0
0

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 MyDB
ADD 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 MyDB
SET READ_COMMITTED_SNAPSHOT off

ALTER DATABASE MyDB
SET ALLOW_SNAPSHOT_ISOLATION off



Viewing all articles
Browse latest Browse all 15889

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>