Skip to content

ReadTrace post processing scripts added directly into sql nexus folder instead of generating dynamically#473

Merged
PiJoCoder merged 4 commits intomasterfrom
hacitandogan_20251112_AddReadTracePostScriptsIntoSQLNexus
Nov 18, 2025
Merged

ReadTrace post processing scripts added directly into sql nexus folder instead of generating dynamically#473
PiJoCoder merged 4 commits intomasterfrom
hacitandogan_20251112_AddReadTracePostScriptsIntoSQLNexus

Conversation

@hacitandogan
Copy link
Contributor

+ReadTracePostProcessing.sql inherited from RML Reporter.exe , no need to invoke reporter for those scripts
+Re-format the T-SQL scripts to make them look more professional and prettier
+Introduce these two files in the project as new item

Removed the invoke of Reporter for scripts
Reformat scripts
Add files to the project
Add hash for these new scripts
First set of modifications,  this still needs additional testing.
#469 Correcting some typos on the Script
+fixed minor typo issues
+removed the GO at the end , it was messing up batch parser and causing a fake failure
+Copilot confirmed old and new scripts are functionally same.
"only differences are in formatting, capitalization, and comments for readability. There are no changes to the logic, structure, or output of any procedures or functions."
+import tests
@PiJoCoder PiJoCoder changed the title Hacitandogan 20251112 add read trace post scripts into sql nexus ReadTrace post processing scripts added directly into sql nexus folder instead of generating dynamically Nov 17, 2025
@PiJoCoder
Copy link
Collaborator

PiJoCoder commented Nov 17, 2025

Tested with new scripts. Also used CoPilot to compare scripts
Used a smoke test to spot test some of the procedures after execution

EXEC ReadTrace.spReporter_TimeIntervals;
EXEC ReadTrace.spReporter_TraceFiles;
EXEC ReadTrace.spReporter_MiscInfo;
EXEC ReadTrace.spReporter_ResourceUsageDuringInterval
     @StartTimeInterval = NULL, @EndTimeInterval = NULL;

Worked just fine

TimeInterval StartTime                      EndTime
------------ ------------------------------ ------------------------------
NULL         <Auto Select>                  <Auto Select>
1            2025-11-17 20:39:02.833        2025-11-17 20:39:03.830
2            2025-11-17 20:39:03.833        2025-11-17 20:39:04.830
3            2025-11-17 20:39:04.833        2025-11-17 20:39:05.830
4            2025-11-17 20:39:05.833        2025-11-17 20:39:06.830
5            2025-11-17 20:39:06.833        2025-11-17 20:39:07.830
6            2025-11-17 20:39:07.833        2025-11-17 20:39:08.830
7            2025-11-17 20:39:08.833        2025-11-17 20:39:09.830
8            2025-11-17 20:39:09.833        2025-11-17 20:39:10.830
9            2025-11-17 20:39:10.833        2025-11-17 20:39:11.830
10           2025-11-17 20:39:11.833        2025-11-17 20:39:12.830
11           2025-11-17 20:39:12.833        2025-11-17 20:39:13.830
12           2025-11-17 20:39:13.833        2025-11-17 20:39:14.830
13           2025-11-17 20:39:14.833        2025-11-17 20:39:15.830
14           2025-11-17 20:39:15.833        2025-11-17 20:39:16.830
15           2025-11-17 20:39:16.833        2025-11-17 20:39:17.830
16           2025-11-17 20:39:17.833        2025-11-17 20:39:18.830
17           2025-11-17 20:39:18.833        2025-11-17 20:39:19.830
18           2025-11-17 20:39:19.833        2025-11-17 20:39:20.830
19           2025-11-17 20:39:20.833        2025-11-17 20:39:21.830
20           2025-11-17 20:39:21.833        2025-11-17 20:39:22.830
21           2025-11-17 20:39:22.833        2025-11-17 20:39:23.830
22           2025-11-17 20:39:23.833        2025-11-17 20:39:24.830
23           2025-11-17 20:39:24.833        2025-11-17 20:39:25.830
24           2025-11-17 20:39:25.833        2025-11-17 20:39:26.830
25           2025-11-17 20:39:26.833        2025-11-17 20:39:27.830
26           2025-11-17 20:39:27.833        2025-11-17 20:39:28.830

(27 rows affected)

FileProcessed FirstSeqNumber       LastSeqNumber        FirstEventTime                 LastEventTime                  EventsRead           TraceFileName
------------- -------------------- -------------------- ------------------------------ ------------------------------ -------------------- ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1             1                    593                  2025-11-17 20:39:01.500        2025-11-17 20:39:29.437        593                  SERVER1_20251117T1438566013_xevent_LogScout_target_0_134078855410070000.XEL

Attribute                                          Value
-------------------------------------------------- ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Active SQL Version                                 Microsoft SQL Server 2022 (RTM-CU21-GDR) (KB5068406) - 16.0.4222.2 (X64) 
	Oct  3 2025 16:55:17 
	Copyright (C) 2022 Microsoft Corporation
	Developer Edition (64-bit) on Windows 10 Enterprise 10.0 <X64> (Build 26200: ) (Hypervisor)

Current Date                                       Nov 17 2025  2:48PM
Database                                           sqlnexus
Database Sort Order                                52
DatabaseSchemaVersion                              10
EventVersion                                       9
LoadEndTime                                        2025-11-17 14:43:26.457
LoadStartTime                                      2025-11-17 14:43:25.040
OutputDir                                          C:\Users\user1\AppData\Local\Temp\RML\
ReadTraceVersion                                   9.04.0103
Timing Base                                        Microseconds (µs)
TracedServerVersionBuild                           1600
TracedServerVersionMajor                           10
TracedServerVersionMinor                           0
TraceEventsRead                                    593
TraceFileLocation                                  D:\sqllogscout\output\

(16 rows affected)

ElapsedMilliseconds  IntervalCPU          IntervalDuration     IntervalReads        IntervalWrites
-------------------- -------------------- -------------------- -------------------- --------------------
25997                0                    60538                742                  0
Warning: Null value is eliminated by an aggregate or other SET operation.


Completion time: 2025-11-17T14:48:00.9482799-06:00

PiJoCoder
PiJoCoder previously approved these changes Nov 17, 2025
@PiJoCoder
Copy link
Collaborator

@hacitandogan , this is great. Thanks

Can you merge master in your branch and resolve the reported conflict? There seems to be a difference in
your branch
{ "SQLNexus_PostProcessing.sql", "D6B0081152C262BFF6CBD0F04FC01B990E619DDD10FEDB8470438D0514E815FA" },

master
{ "SQLNexus_PostProcessing.sql", "BA659CE90DD602AD16C5A8F131D95C1A7D86AA00D764C68C3DE176C5AD0A4139" },

@PiJoCoder PiJoCoder merged commit df1d135 into master Nov 18, 2025
3 checks passed
@PiJoCoder PiJoCoder deleted the hacitandogan_20251112_AddReadTracePostScriptsIntoSQLNexus branch November 20, 2025 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants