STrace STrace STrace Class

Definition

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

public ref class STrace sealed
public sealed class STrace
Public NotInheritable Class STrace
Inheritance
STraceSTraceSTrace

Remarks

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

Properties

AutoFlush AutoFlush AutoFlush

Gets or sets a value indicating whether all messages will be automatically flushed.

Methods

Assert(Boolean) Assert(Boolean) Assert(Boolean)

Checks for a condition. If the condition is false, displays a message box that shows the call stack.

Assert(Boolean, String) Assert(Boolean, String) Assert(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.

Enter() Enter() Enter()

Increases the indentation in the trace results when entering into a function.

Implies(Boolean, Boolean) Implies(Boolean, Boolean) Implies(Boolean, Boolean)

Causes an assertion if premise is true and conclusion is false.

Implies(Boolean, Boolean, String) Implies(Boolean, Boolean, String) Implies(Boolean, Boolean, String)

Causes an assertion if premise is true and conclusion is false and displays a message about the assertion.

Leave() Leave() Leave()

Decreases the indentation in the trace results when returning from a function.

LogExCatch(Exception) LogExCatch(Exception) LogExCatch(Exception)

Logs the fact that an exception was caught, together with the exception message and the stack trace.

LogExThrow() LogExThrow() LogExThrow()

Logs the fact that an exception was thrown, and includes the current stack trace.

Params(String, String, String, Object[]) Params(String, String, String, Object[]) Params(String, String, String, Object[])

Traces function parameters. Logs the input parameters of a function.

SetDefaultLevel(String, UInt32) SetDefaultLevel(String, UInt32) SetDefaultLevel(String, UInt32)

Sets the default trace level for the specified component.

Trace(String, String) Trace(String, String) Trace(String, String)

Traces with the default trace level for the component.

Trace(String, String, Object[]) Trace(String, String, Object[]) Trace(String, String, Object[])

Traces with the default trace level for the component, and logs the input parameters of the method.

Trace(String, UInt32, String) Trace(String, UInt32, String) Trace(String, UInt32, String)

Traces with the specified trace level.

Trace(String, UInt32, String, Object[]) Trace(String, UInt32, String, Object[]) Trace(String, UInt32, String, Object[])

Traces with the specified trace level for the component, and specifies the input parameters to format.

Applies to