IDatabaseOptions.AutoCreateStatisticsEnabled 属性

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

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
<DisplayDescriptionKeyAttribute("Database_AutoCreateStatisticsEnabledDesc")> _
<DisplayNameKeyAttribute("Database_AutoCreateStatisticsEnabledName")> _
Property AutoCreateStatisticsEnabled As Boolean 
    Get 
    Set
用法
Dim instance As IDatabaseOptions 
Dim value As Boolean 

value = instance.AutoCreateStatisticsEnabled

instance.AutoCreateStatisticsEnabled = value
[DisplayDescriptionKeyAttribute("Database_AutoCreateStatisticsEnabledDesc")]
[DisplayNameKeyAttribute("Database_AutoCreateStatisticsEnabledName")]
bool AutoCreateStatisticsEnabled { get; set; }
[DisplayDescriptionKeyAttribute(L"Database_AutoCreateStatisticsEnabledDesc")]
[DisplayNameKeyAttribute(L"Database_AutoCreateStatisticsEnabledName")]
property bool AutoCreateStatisticsEnabled {
    bool get ();
    void set (bool value);
}
[<DisplayDescriptionKeyAttribute("Database_AutoCreateStatisticsEnabledDesc")>]
[<DisplayNameKeyAttribute("Database_AutoCreateStatisticsEnabledName")>]
abstract AutoCreateStatisticsEnabled : bool with get, set
function get AutoCreateStatisticsEnabled () : boolean 
function set AutoCreateStatisticsEnabled (value : boolean)

属性值

类型: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.

示例

设置属性

数据库选项

请参阅

参考

IDatabaseOptions 接口

Microsoft.SqlServer.Management.Smo 命名空间