ReadOnly Property (SQL-DMO)

The ReadOnly property controls the ability to update a Microsoft® SQL Server™ database or database filegroup.

Applies To
DBOption Object FileGroup Object

Syntax

object.ReadOnly [= value]

Part Description
object Expression that evaluates to an object in the Applies To list
value True or False

Remarks

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.

Data Type

Boolean

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetReadOnly(LPBOOL pRetVal);

HRESULT SetReadOnly(BOOL NewValue);

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.