Export (0) Print
Expand All

IDatabasePerformanceFacet.AutoShrink Property

 

Applies To: SQL Server 2016 Preview

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: System.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.

Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft