The ReadOnly property controls the ability to update a Microsoft® SQL Server™ database or database filegroup.
| DBOption Object | FileGroup Object |
object.ReadOnly [= value]
| Part | Description |
|---|---|
| object | Expression that evaluates to an object in the Applies To list |
| value | True or False |
If True, data in the database or database filegroup cannot be changed.
If False, updates are allowed to data in the database or database filegroup.
Boolean
Read/write
HRESULT GetReadOnly(LPBOOL pRetVal);
HRESULT SetReadOnly(BOOL NewValue);