SQL-DMO
ReadOnly Property
The ReadOnly property controls the ability to update a Microsoft® SQL Server™ 2000 database or database filegroup.
Applies To
DBOption Object | FileGroup Object |
Syntax
object.ReadOnly [= value]
Parts
object
Expression that evaluates to an object in the Applies To list
value
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 are allowed to data in the database or database filegroup.