Udostępnij za pośrednictwem


Właściwość IDatabaseOptions.ArithmeticAbortEnabled

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

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

Składnia

'Deklaracja
<DisplayNameKeyAttribute("Database_ArithmeticAbortEnabledName")> _
<DisplayDescriptionKeyAttribute("Database_ArithmeticAbortEnabledDesc")> _
Property ArithmeticAbortEnabled As Boolean
    Get
    Set
'Użycie
Dim instance As IDatabaseOptions
Dim value As Boolean

value = instance.ArithmeticAbortEnabled

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

Wartość właściwości

Typ: System.Boolean
A Boolean wartość określająca, czy opcja ARITHMETICABORT bazy danych jest aktywny.
Jeśli True, transakcja zostanie zatrzymany i wycofywany po wystąpi błąd arytmetycznych.
Jeśli False (domyślnie), nadal transakcji po wystąpieniu błędu arytmetycznych.

Uwagi

Właściwość ta określa, czy transakcja jest zakończone i walcowane po napotkał błąd arytmetycznych lub czy nadal transakcji.

Tę opcję można także zmienić, używając instrukcji ALTER DATABASE języka Transact-SQL.