Export (0) Print
Expand All

DatabaseOptions.AutoCreateStatistics Property

Gets or sets a Boolean property value that specifies whether the AUTOCREATESTATISTICS database option is active.

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

[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.Matrix)]
public bool AutoCreateStatistics { get; set; }

Property Value

Type: Boolean
Boolean value that specifies whether the AUTOCREATESTATISTICS database option is active.If True, statistics are automatically created. Otherwise, False (default).

This property specifies whether statistics are automatically created for a database.

Community Additions

ADD
Show:
© 2014 Microsoft