ReadOnly Property

Questa caratteristica verrà rimossa a partire da una delle prossime versioni di Microsoft SQL Server. Evitare di utilizzare questa funzionalità in un nuovo progetto di sviluppo e prevedere interventi di modifica nelle applicazioni in cui è attualmente implementata.

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

Sintassi

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);

Osservazioni

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.