Compartilhar via


ReadOnly Property

Esse recurso será removido em uma versão futura do Microsoft SQL Server. Evite usar esse recurso em desenvolvimentos novos e planeje modificar os aplicativos que atualmente o utilizam.

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

Sintaxe

object.ReadOnly [= value]

Parts

  • object
    An 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);

Comentários

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.