Interface & Features — Trace Replay

Walk through the main screens, tabs, and controls you will use day to day.

Capture Tab

Creating a New Capture Session

  1. Enter a Session Name (default: DBLenseTraceCapture)
  2. (Optional) Set a Database Filter to capture only events from a specific database
  3. (Optional) Set a Min Duration filter (in microseconds) to skip fast queries
  4. Configure storage target:
    • On-premises: Enter a File Target Path (e.g., C:\Traces\), or leave empty for ring_buffer
    • Azure MI: Use ring_buffer (default) or enter an Azure Blob Storage URL
  5. Click Create & Start to begin capturing

Captured Event Types

EventPurpose
sqlserver.rpc_startingStored procedure calls (start)
sqlserver.rpc_completedStored procedure calls (completed with metrics)
sqlserver.sql_batch_startingAd-hoc SQL batches (start)
sqlserver.sql_batch_completedAd-hoc SQL batches (completed with metrics)
sqlserver.sql_transactionTransaction begin/commit/rollback

Each event captures: session_id, database_name, sql_text, username, client_hostname, duration, cpu_time, logical_reads, physical_reads, writes, row_count.

Stopping and Reading Events

  1. Execute your workload on the source server while capture is running
  2. Click Stop Capture when done
  3. Click Read Events to load captured events into the grid

Reading from Existing Sessions

If you already have an Extended Events session running, select it from the Existing XE Sessions dropdown and click Read From Selected Session.


Replay Tab

Configuration Options

OptionDescriptionDefault
Target DatabaseOverride original database for all events(use original)
Max Concurrent ThreadsNumber of simultaneous connections10
Speed Factor0 = max speed, 1.0 = real-time, 2.0 = double speed0
Command TimeoutSeconds before query times out120
Max ErrorsStop after this many errors (0 = unlimited)100
Dry RunWrap each query in a rolled-back transactionOff
Preserve Session OrderGroup events by SPID and replay in orderOn
Skip System QueriesFilter out sp_reset_connection, SET commands, etc.On

Starting Replay

  1. Ensure you have captured/loaded events
  2. Ensure target server is configured
  3. Configure replay options
  4. Click Start Replay

Live Results

The replay grid shows results in real-time:

  • Status: ✓ success or ✗ error
  • Original vs. Replay duration: Compare performance
  • Diff %: Green = faster, Red = slower, Amber = similar
  • Thread: Which replay thread executed the query
  • Error: Error details for failed queries

Click Export CSV to save all replay results.


Summary Tab

After replay completes:

  • Total Events / Replayed / Errors / Success Rate
  • Avg Original/Replay Duration — Performance comparison
  • Overall Speedup — Positive = replay was faster
  • Wall Clock — Total elapsed time
  • Activity Log — Timestamped operation log