Database.AutoShrink Database.AutoShrink Database.AutoShrink Property


Gets or sets a value that specifies whether the AUTO_SHRINK database option is active.

 property bool AutoShrink { bool get(); void set(bool value); };
[Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcProperty(Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.Standalone | Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.SqlAzureDatabase | Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.Deploy)]
public bool AutoShrink { get; set; }
Public Property AutoShrink As Boolean
Property Value

A Boolean value that specifies whether the AutoShrink database option is active. If True, the database is automatically reduced. If False (default), statistics are not automatically reduced.


Applies to