Udostępnij za pośrednictwem


Właściwość IDatabaseOptions.AutoCreateStatisticsEnabled

Pobiera lub ustawia Boolean , który określa czy opcji bazy danych AUTOCREATESTATISTICS wartość właściwość jest aktywny.

Przestrzeń nazw:  Microsoft.SqlServer.Management.Smo
Zestaw:  Microsoft.SqlServer.Smo (w Microsoft.SqlServer.Smo.dll)

Składnia

'Deklaracja
<DisplayDescriptionKeyAttribute("Database_AutoCreateStatisticsEnabledDesc")> _
<DisplayNameKeyAttribute("Database_AutoCreateStatisticsEnabledName")> _
Property AutoCreateStatisticsEnabled As Boolean
    Get
    Set
'Użycie
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)

Wartość właściwości

Typ: System.Boolean
A Boolean wartość określająca, czy opcji bazy danych AUTOCREATESTATISTICS jest aktywny.
Jeśli True, statystyki są tworzone automatycznie.
Jeśli False (domyślnie), statystyki nie są tworzone automatycznie.

Uwagi

Właściwość ta określa, czy statystyki są tworzone automatycznie dla bazy danych.