UserOptions.AnsiWarnings Property
Applies To: SQL Server 2016 Preview
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
[SfcPropertyAttribute(SfcPropertyFlags.None | SfcPropertyFlags.Standalone | SfcPropertyFlags.Deploy | SfcPropertyFlags.Matrix,
"true")]
public bool AnsiWarnings { get; set; }
public:
[SfcPropertyAttribute(SfcPropertyFlags::None | SfcPropertyFlags::Standalone | SfcPropertyFlags::Deploy | SfcPropertyFlags::Matrix,
"true")]
property bool AnsiWarnings {
bool get();
void set(bool value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.None | SfcPropertyFlags.Standalone | SfcPropertyFlags.Deploy | SfcPropertyFlags.Matrix,
"true")>]
member AnsiWarnings : bool with get, set
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.Deploy Or SfcPropertyFlags.Matrix,
"true")>
Public Property AnsiWarnings As Boolean
Property Value
Type: 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.
Examples
Legacy Code Example
See Also
UserOptions Class
Microsoft.SqlServer.Management.Smo Namespace
Configuring SQL Server in SMO
Unable to find linked topic '18ec1bd8-1d3c-4b17-befb-a2cbb5524446'.
Return to top