This documentation is archived and is not being maintained.
This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.
The ReadOnly property controls the ability to update a Microsoft SQL Server database or database filegroup.
.ReadOnly [= value]
An expression that evaluates to an object in the Applies To list
TRUE or FALSE
HRESULT GetReadOnly(LPBOOL pRetVal);
HRESULT SetReadOnly(BOOL NewValue);
If TRUE, data in the database or database filegroup cannot be changed.
If FALSE, updates to data are allowed in the database or database filegroup.