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)

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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft