TechNet
Export (0) Print
Expand All
Collapse the table of content
Expand the table of content
Expand Minimize

IDatabaseOptions.AutoCreateStatisticsEnabled 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)

[DisplayNameKeyAttribute("Database_AutoCreateStatisticsEnabledName")]
[DisplayDescriptionKeyAttribute("Database_AutoCreateStatisticsEnabledDesc")]
bool AutoCreateStatisticsEnabled { get; set; }

Property Value

Type: System.Boolean

A Boolean value that specifies whether the AUTOCREATESTATISTICS database option is active.

If True, statistics are automatically created.

If False (default), statistics are not automatically created.

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

Return to top
Show:
© 2016 Microsoft