Udostępnij za pośrednictwem


Właściwość Database.AnsiWarningsEnabled

Pobiera lub ustawia wartość właściwość ANSI_WARNING_ENABLED wartość logiczna.

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

Składnia

'Deklaracja
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase Or SfcPropertyFlags.Design)> _
Public Property AnsiWarningsEnabled As Boolean
    Get
    Set
'Użycie
Dim instance As Database
Dim value As Boolean

value = instance.AnsiWarningsEnabled

instance.AnsiWarningsEnabled = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)]
public bool AnsiWarningsEnabled { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase|SfcPropertyFlags::Design)]
public:
virtual property bool AnsiWarningsEnabled {
    bool get () sealed;
    void set (bool value) sealed;
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)>]
abstract AnsiWarningsEnabled : bool with get, set
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)>]
override AnsiWarningsEnabled : bool with get, set
final function get AnsiWarningsEnabled () : boolean
final function set AnsiWarningsEnabled (value : boolean)

Wartość właściwości

Typ: System.Boolean
A Boolean wartość określająca, czy AnsiWarningsEnabled opcja bazy danych jest aktywny.Jeśli True, są wyświetlane ostrzeżenia, gdy wystąpią wartości null w instrukcja.Jeśli False (domyślnie), ostrzeżenia nie są wydawane w przypadku wartości null są w sprawozdaniu.

Implementacje

IDatabaseOptions.AnsiWarningsEnabled