ReadOnly Property
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.
Syntax
object.ReadOnly [= value]
Parts
object
An expression that evaluates to an object in the Applies To listvalue
TRUE or FALSE
Data Type
Boolean
Modifiable
Read/write
Prototype (C/C++)
HRESULT GetReadOnly(LPBOOL pRetVal);
HRESULT SetReadOnly(BOOL NewValue);
Remarks
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.