This documentation is archived and is not being maintained.

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.


object
.ReadOnly [= value]

object

An expression that evaluates to an object in the Applies To list

value

TRUE or FALSE

Boolean

Read/write

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.

Show: