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: 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
Show: