Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Readonly Filegroups

Author  Topic 

rubs_65
Posting Yak Master

144 Posts

Posted - 2004-06-30 : 13:15:04
Hi,

In our application we are using partition view and tables are partitioned based on month. So we are planning to store each table in separate filegroup and after month ends change the filegroup property to readonly programmatically. But it seems like when I try to run alter database command it try to hold exclusive lock on database and timeouts and since we can't stop the system for this command..is there any way we can force to change the filegroup status as READONLY?

Thanks
--rubs

derrickleggett
Pointy Haired Yak DBA

4184 Posts

Posted - 2004-06-30 : 18:19:22
ALTER DATABASE database SET READ_ONLY WITH ROLLBACK IMMEDIATE

MeanOldDBA
derrickleggett@hotmail.com

When life gives you a lemon, fire the DBA.
Go to Top of Page

rubs_65
Posting Yak Master

144 Posts

Posted - 2004-07-01 : 13:08:50
We just need to put particular filegroup in RADONLY mode and not the complete database. we want the users that are using database and accesing the data in other filegroups to be unaffected by this command

Thanks
--rubs
Go to Top of Page
   

- Advertisement -