Traces database activity within an application for debugging.
public delegate void TraceEnterEventHandler(AseConnection
connection, object source, string method, object[] parameters);
public delegate void TraceExitEventHandler(AseConnection
connection, object source, string method, object returnValue);
Use TraceEnter and TraceExit events to hook up your own tracing method. This event is unique to an instance of a connection. This allows different connections to be logged to different files. It can ignore the event, or you can program it for other tracing. In addition, by using a .NET event, you can set up more than one event handler for a single connection object. This enables you to log the event to both a window and a file at the same time.
True – triggers the TraceEnter and TraceExit events.
False – the default value; Adaptive Server ADO.NET Data Provider ignores the TraceEnter and TraceExit events.