AutoShrink Property

Questa funzionalità verrà rimossa in 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 AutoShrink property exposes Microsoft SQL Server sizing behavior for operating system files that maintain table and index data.

Sintassi

object
.AutoShrink [=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 GetAutoShrink(LPBOOL pRetVal);
HRESULT SetAutoShrink(BOOL NewValue);

Osservazioni

If TRUE, operating system files maintaining table and index data are evaluated for downward resizing when the server periodically checks for unused space.

If FALSE, the operating system files storing the database are not evaluated during periodic checks for unused space.

The AutoShrink Property property is equivalent to the sp_dboption (Transact-SQL)autoshrink option in Transact-SQL.

Applies To:

DBOption Object

Vedere anche

Altre risorse

Compattazione di un database

Guida in linea e informazioni

Assistenza su SQL Server 2005