Freigeben über


UserOptions.AnsiWarnings-Eigenschaft

Gets or sets the Boolean property value that specifies whether warning messages are generated when nulls are encountered in aggregate functions such as SUM, AVG, MAX, MIN, STDEV, STDEVP, VAR, VARP, or COUNT.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.Deploy,  _
    "true")> _
Public Property AnsiWarnings As Boolean 
    Get 
    Set
'Usage
Dim instance As UserOptions 
Dim value As Boolean 

value = instance.AnsiWarnings

instance.AnsiWarnings = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.Deploy, 
    "true")]
public bool AnsiWarnings { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Standalone|SfcPropertyFlags::Deploy, 
    L"true")]
public:
property bool AnsiWarnings {
    bool get ();
    void set (bool value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.Deploy, 
    "true")>]
member AnsiWarnings : bool with get, set
function get AnsiWarnings () : boolean 
function set AnsiWarnings (value : boolean)

Eigenschaftswert

Typ: System.Boolean
A Boolean value that specifies the whether a warning message is generated when null values are encountered in aggregate functions.If True, warning messages are generated when aggregate functions encounter null values.If False (default), warning messages are not generated when aggregate functions encounter null values.

Beispiele

Konfigurieren von SQL Server in SMO

Siehe auch

Verweis

UserOptions Klasse

Microsoft.SqlServer.Management.Smo-Namespace

Andere Ressourcen

Konfigurieren von SQL Server in SMO

NIB-Benutzeroptionen (Option)