共用方式為


AnsiWarnings 屬性

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.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<SfcPropertyAttribute> _
Public Property AnsiWarnings As Boolean
    Get
    Set
'用途
Dim instance As UserOptions
Dim value As Boolean

value = instance.AnsiWarnings

instance.AnsiWarnings = value
[SfcPropertyAttribute]
public bool AnsiWarnings { get; set; }
[SfcPropertyAttribute]
public:
property bool AnsiWarnings {
    bool get ();
    void set (bool value);
}
[<SfcPropertyAttribute>]
member AnsiWarnings : bool with get, set
function get AnsiWarnings () : boolean
function set AnsiWarnings (value : boolean)

屬性值

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