Skip to content

Create a TraceEvent Importer in SQL Nexus to replace ReadTrace functionality #513

Description

@PiJoCoder

Summary:
This proposal introduces a fully managed (.NET Framework 4.8) trace file importer plugin — Trace Event Importer (Managed) — to replace the dependency on the native ReadTrace.exe binary from RML Utilities.
The new importer

  • reads both .trc (SQL Trace) and .xel (Extended Events) files,
  • normalizes SQL text
  • computes hash IDs for query grouping
  • correlates Starting↔Completed events,
  • tracks connections in trace
  • computes time-interval aggregations
  • and bulk-loads all data into the existing ReadTrace schema — ensuring all current RDLC reports work without modification.

It is implemented as a standard INexusImporter plugin discovered via DLL reflection, with mutual exclusivity logic to prevent both importers from running simultaneously. The plugin embeds its schema creation and post-load fixup SQL scripts as resources, eliminating external file dependencies, and uses the XELite NuGet package for reliable XEL file parsing. This removes the requirement for users to install RML Utilities and gives the SQL Nexus team full source control over the trace import pipeline.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions