Export (0) Print
Expand All

IDatabasePerformanceFacet.AutoShrink Property

Indicates whether the database files are candidates for periodic shrinking.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

[DisplayDescriptionKeyAttribute("Database_AutoShrinkDesc")]
[DisplayNameKeyAttribute("Database_AutoShrinkName")]
bool AutoShrink { get; set; }

Property Value

Type: Boolean
A Boolean value that indicates whether the database files can be shrunk automatically. Returns True if database files can be shrunk automatically; otherwise, False.

This property corresponds to the AUTO_SHRINK TSQL argument of ALTER DATABASE SET OPTIONS.

Community Additions

ADD
Show:
© 2014 Microsoft