ServerTraceEventSet.TraceErrorsAndWarnings Property
SQL Server 2008 R2
Gets or sets a Boolean property value that specifies whether errors and warnings are recorded in the trace.
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Property Value
Type: System.BooleanA Boolean value that specifies whether errors and warnings are included in the trace.
If True, errors and warnings are recorded in the trace.
If False (default), errors and warnings are not recorded in the trace.