Udostępnij przez


TraceReplayOptions.DisplayPerfEvent Property

Gets or sets a value indicating whether an additional event that reports execution time is displayed for each replayed event.

Namespace: Microsoft.SqlServer.Management.Trace
Assembly: Microsoft.SqlServer.ConnectionInfoExtended (in microsoft.sqlserver.connectioninfoextended.dll)

Syntax

'Deklaracja
Public Property DisplayPerfEvent As Boolean
public bool DisplayPerfEvent { get; set; }
public:
property bool DisplayPerfEvent {
    bool get ();
    void set (bool value);
}
/** @property */
public boolean get_DisplayPerfEvent ()

/** @property */
public void set_DisplayPerfEvent (boolean value)
public function get DisplayPerfEvent () : boolean

public function set DisplayPerfEvent (value : boolean)

Property Value

True if the additional event is displayed for each replayed event; otherwise,false (default).

Remarks

When the value of DisplayPerfEvent is true, performance information is captured and reported for replayed events. The trace displays one performance event for each replayed event. The performance event includes the following performance information:

  • ExecutionTime. The elapsed time on the client in milliseconds between the submission of the query and the server's response.

  • **FetchAndExecutionTime.**The elapsed time on the client in milliseconds between the submission of the query and the fetching of all rows.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.