Export (0) Print
Expand All

STrace Class

Contains methods that can be used to trace the execution of code in SQL Server.

Object
  Microsoft.SqlServer.Management.Diagnostics.STrace

Namespace:  Microsoft.SqlServer.Management.Diagnostics
Assembly:  Microsoft.SqlServer.SqlTDiagM (in Microsoft.SqlServer.SqlTDiagM.dll)

public sealed class STrace

The STrace type exposes the following members.

  NameDescription
Public propertyStatic memberAutoFlushGets or sets a value indicating whether all messages will be automatically flushed.
Top

  NameDescription
Public methodStatic memberAssert(Boolean)Checks for a condition. If the condition is false, displays a message box that shows the call stack.
Public methodStatic memberAssert(Boolean, String)Checks for a condition. If the condition is false, this method sends a specified message and displays a message box that shows the call stack.
Public methodStatic memberEnterIncreases the indentation in the trace results when entering into a function.
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodStatic memberImplies(Boolean, Boolean)Causes an assertion if premise is true and conclusion is false.
Public methodStatic memberImplies(Boolean, Boolean, String)Causes an assertion if premise is true and conclusion is false and displays a message about the assertion.
Public methodStatic memberLeaveDecreases the indentation in the trace results when returning from a function.
Public methodStatic memberLogExCatchLogs the fact that an exception was caught, together with the exception message and the stack trace.
Public methodStatic memberLogExThrowLogs the fact that an exception was thrown, and includes the current stack trace.
Public methodStatic memberParamsTraces function parameters. Logs the input parameters of a function.
Public methodStatic memberSetDefaultLevelSets the default trace level for the specified component.
Public methodToString (Inherited from Object.)
Public methodStatic memberTrace(String, String)Traces with the default trace level for the component.
Public methodStatic memberTrace(String, String, Object[])Traces with the default trace level for the component, and logs the input parameters of the method.
Public methodStatic memberTrace(String, UInt32, String)Traces with the specified trace level.
Public methodStatic memberTrace(String, UInt32, String, Object[])Traces with the specified trace level for the component, and specifies the input parameters to format.
Top

Identified for informational purposes only. Not supported. Future compatibility is not guaranteed.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft