Export (0) Print
Expand All

AutoShrink Property

This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.

The AutoShrink property exposes Microsoft SQL Server sizing behavior for operating system files that maintain table and index data.


object
.AutoShrink [=value]

object

An expression that evaluates to an object in the Applies To list

value

TRUE or FALSE

Boolean

Read/write

HRESULT GetAutoShrink(LPBOOL pRetVal);
HRESULT SetAutoShrink(BOOL NewValue);

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.

Community Additions

ADD
Show:
© 2014 Microsoft