diff --git a/.github/sqlnexus-codeql.slnf b/.github/sqlnexus-codeql.slnf
new file mode 100644
index 00000000..ed25a026
--- /dev/null
+++ b/.github/sqlnexus-codeql.slnf
@@ -0,0 +1,14 @@
+{
+ "solution": {
+ "path": "../sqlnexus.sln",
+ "projects": [
+ "BulkLoadEx\\BulkLoadEx.csproj",
+ "LinuxPerfImporter\\LinuxPerfImporter.csproj",
+ "NexusInterfaces\\NexusInterfaces.csproj",
+ "PerfmonImporter\\PerfmonImporter.csproj",
+ "ReadTraceNexusImporter\\ReadTraceNexusImporter.csproj",
+ "RowsetImportEngine\\RowsetImportEngine.csproj",
+ "sqlnexus\\sqlnexus.csproj"
+ ]
+ }
+}
\ No newline at end of file
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
index 9d4b0c4b..bef4ac0f 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yml
@@ -33,15 +33,25 @@ jobs:
languages: ${{ matrix.language }}
config-file: .github/codeql-config.yml
- - name: NuGet packages
+ - name: Restore NuGet packages
run: |
- nuget restore sqlnexus.sln
+ nuget restore sqlnexus.sln -PackagesDirectory packages -NonInteractive
- name: Build .NET Framework solution
shell: pwsh
run: |
- $msbuild = & "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -latest -products * -requires Microsoft.Component.MSBuild -find MSBuild\**\Bin\MSBuild.exe
- & $msbuild sqlnexus.sln /p:Configuration=Release
+ $msbuild = & "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" `
+ -latest -products * -requires Microsoft.Component.MSBuild `
+ -find MSBuild\**\Bin\MSBuild.exe
+
+ Write-Host "Using MSBuild at $msbuild"
+ & $msbuild .github\sqlnexus-codeql.slnf `
+ /t:Rebuild `
+ /p:Configuration=Release `
+ /p:Platform="Any CPU" `
+ /p:UseSharedCompilation=false `
+ /nodeReuse:false `
+ /m:1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
diff --git a/.gitignore b/.gitignore
index 918ccb89..2c0ca0bb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -172,3 +172,7 @@ $RECYCLE.BIN/
# Random files to ignore
NexusReports/NexusReports.rptproj.rsuser
/NexusReports/NexusReports.rptproj.rsuser
+
+# .data files from Report Builder preview
+/NexusReports/*.rdl.data
+
diff --git a/NexusReports/Active Queries_C.rdl b/NexusReports/Active Queries_C.rdl
index f33ef1fd..52083b0d 100644
--- a/NexusReports/Active Queries_C.rdl
+++ b/NexusReports/Active Queries_C.rdl
@@ -1,809 +1,970 @@
- 0
-
-
-
- SQL
- ="data source=" & Parameters!dsServerName.Value & ";initial catalog="&Parameters!dsDatabaseName.Value
- true
-
- Integrated
- db3d0ad1-a739-4837-af21-db1c50afbef3
-
-
-
- SQL
- Data Source=sqlserver1\inst1;Initial Catalog=Brad1104Before
- true
-
- Integrated
- 9e18d49e-cc63-4207-88e7-0f06fb806780
-
-
-
-
-
- DataSource_Private
- IF OBJECT_ID('tbl_TopNLogicalReadsByQueryHash') IS NOT NULL
- AND OBJECT_ID('tbl_TopNDurationByQueryHash') IS NOT NULL
- AND OBJECT_ID('tbl_TopNCPUByQueryHash') IS NOT NULL
- SELECT 1 AS Available;
-ELSE
- SELECT 0 AS Available;
- true
-
-
-
- Available
-
-
-
-
-
- DataSource_Private
- SELECT TOP 20
- FORMAT(DATEDIFF(MI, req.request_start_time, req.runtime), 'N', 'en-us') 'running_duration_minutes',
- req.request_start_time,
- 'still running' request_end_time,
- req.request_logical_reads,
- FORMAT((req.request_cpu_time / 1000.00 / 60.0), 'N', 'en-us') 'cpu_time_minutes',
- naq.stmt_text
-FROM
-(
- SELECT runtime,
- session_id,
- MAX(request_cpu_time) 'request_cpu_time',
- MIN(request_start_time) 'request_start_time',
- MAX(request_logical_reads) 'request_logical_reads'
- FROM dbo.tbl_REQUESTS
- GROUP BY runtime,
- session_id
-) req
- JOIN dbo.tbl_NOTABLEACTIVEQUERIES naq
- ON req.session_id = naq.session_id
- AND req.runtime = naq.runtime
-WHERE req.runtime =
-(
- SELECT MAX(runtime)FROM dbo.tbl_REQUESTS
-)
- AND naq.runtime =
- (
- SELECT MAX(runtime)FROM dbo.tbl_REQUESTS
- )
-ORDER BY req.request_cpu_time DESC;
-
-
-
- running_duration_minutes
- System.String
-
-
- request_start_time
- System.DateTime
-
-
- request_end_time
- System.String
-
-
- request_logical_reads
- System.Int64
-
-
- cpu_time_minutes
- System.String
-
-
- stmt_text
- System.String
-
-
-
-
-
-
-
-
-
- true
- true
-
-
-
-
- TOP 20 Active CPU Intensive Queries
-
-
-
-
-
-
- textbox1
- 2.25in
- 0.36in
- 8in
-
-
-
-
-
-
- 1.62799in
-
-
- 1.78299in
-
-
- 1.63715in
-
-
- 1.49132in
-
-
- 1.37674in
-
-
- 5.26215in
-
-
-
-
- 0.25in
-
-
-
-
- true
- true
-
-
-
-
- running_duration_minutes
-
-
-
-
-
-
- Textbox8
-
-
- 2pt
- 2pt
- 2pt
- 2pt
-
-
-
-
-
-
-
- true
- true
-
-
-
-
- request_start_time
-
-
-
-
-
-
- Textbox10
-
-
- 2pt
- 2pt
- 2pt
- 2pt
-
-
-
-
-
-
-
- true
- true
-
-
-
-
- request_end _time
-
-
-
-
-
-
- Textbox12
-
-
- 2pt
- 2pt
- 2pt
- 2pt
-
-
-
-
-
-
-
- true
- true
-
-
-
-
- request_logical_reads
-
-
-
-
-
-
- Textbox14
-
-
- 2pt
- 2pt
- 2pt
- 2pt
-
-
-
-
-
-
-
- true
- true
-
-
-
-
- cpu_time_minutes
-
-
-
-
-
-
- Textbox16
-
-
- 2pt
- 2pt
- 2pt
- 2pt
-
-
-
-
-
-
-
- true
- true
-
-
-
-
- stmt text
-
-
-
-
-
-
- Textbox18
-
-
- 2pt
- 2pt
- 2pt
- 2pt
-
-
-
-
-
-
-
- 0.25in
-
-
-
-
- true
- true
-
-
-
-
- =Fields!running_duration_minutes.Value
-
-
-
-
-
-
- running_duration_minutes
-
-
- 2pt
- 2pt
- 2pt
- 2pt
-
-
-
-
-
-
-
- true
- true
-
-
-
-
- =Fields!request_start_time.Value
-
-
-
-
-
-
- request_start_time
-
-
- 2pt
- 2pt
- 2pt
- 2pt
-
-
-
-
-
-
-
- true
- true
-
-
-
-
- =Fields!request_end_time.Value
-
-
-
-
-
-
- request_end_time
-
-
- 2pt
- 2pt
- 2pt
- 2pt
-
-
-
-
-
-
-
- true
- true
-
-
-
-
- =Fields!request_logical_reads.Value
-
-
-
-
-
-
- request_logical_reads
-
-
- 2pt
- 2pt
- 2pt
- 2pt
-
-
-
-
-
-
-
- true
- true
-
-
-
-
- =Fields!cpu_time_minutes.Value
-
-
-
-
-
-
- cpu_time_minutes
-
-
- 2pt
- 2pt
- 2pt
- 2pt
-
-
-
-
-
-
-
- true
- true
-
-
-
-
- =Fields!stmt_text.Value
-
-
-
-
-
-
- stmt_text
-
-
- 2pt
- 2pt
- 2pt
- 2pt
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- After
-
-
-
-
-
-
- DataSet_Running_Queries
- 1.30083in
- 1.48833in
- 0.5in
- 13.17834in
- 1
-
-
-
-
-
- true
- true
-
-
-
-
- This report displays top 20 CPU intensive queries that were still running when pssdiag capture was shut down. These queries were not counted by readtrace reports because they only count finished queries
-
-
-
-
-
-
- Textbox20
- 0.74875in
- 1.48833in
- 0.29167in
- 13.17833in
- 2
-
-
- 2pt
- 2pt
- 2pt
- 2pt
-
-
-
- true
- true
-
-
-
-
- Show queries for this report.
-
-
-
-
-
-
- 2.51389in
- 1.48833in
- 0.25in
- 3.74913in
- 3
-
-
- 2pt
- 2pt
- 2pt
- 2pt
-
-
-
-
-
- true
- true
-
-
-
-
- =DataSets!DataSet_Running_Queries.CommandText
-
-
-
-
-
-
- 0.2257in
- 0.01042in
- 0.25in
- 9.81249in
-
- true
- tb_ReportQueryHeader
-
-
-
- 2pt
- 2pt
- 2pt
- 2pt
-
-
-
- true
- 2.98437in
- 1.48833in
- 0.68403in
- 9.84374in
- 4
-
- true
- tb_ReportQueryHeader
-
-
-
-
-
-
- 6.25in
-
-
- 16.04167in
-
- 1in
- 1in
- 1in
- 1in
-
-
-
-
-
-
- String
-
-
- sqlserver1\inst1
-
-
- true
- Server Name
- true
-
-
- String
-
-
- sqlnexus
-
-
- true
- Database Name
- true
-
-
- String
-
-
- CPU
-
-
- true
- OrderByCriteria
-
-
- String
-
-
- #E8F8FF
-
-
- true
- FmtAmbientBackground
- true
-
-
-
- #E8F8FF
-
-
-
-
-
-
- String
-
-
- LightSteelBlue
-
-
- true
- true
-
-
-
- LightSteelBlue
-
-
-
-
-
-
-
-
- 3
- 2
-
-
- 0
- 0
- dsServerName
-
-
- 1
- 0
- dsDatabaseName
-
-
- 0
- 1
- OrderByCriteria
-
-
- 1
- 1
- FmtAmbientBackground
-
-
- 2
- 1
- FmtChartBackground
-
-
-
-
- en-US
- true
- Inch
- 88d1de3b-a4e1-4ca9-8aaa-ee5f4b1cec14
+ 0
+
+
+
+ SQL
+ Data Source=.;Initial Catalog=sqlnexus
+ true
+
+ Integrated
+ db3d0ad1-a739-4837-af21-db1c50afbef3
+
+
+
+ SQL
+ Data Source=.;Initial Catalog=sqlnexus
+ true
+
+ Integrated
+ 9e18d49e-cc63-4207-88e7-0f06fb806780
+
+
+
+
+
+ DataSource_Private
+
+ IF OBJECT_ID('tbl_TopNLogicalReadsByQueryHash') IS NOT NULL
+ AND OBJECT_ID('tbl_TopNDurationByQueryHash') IS NOT NULL
+ AND OBJECT_ID('tbl_TopNCPUByQueryHash') IS NOT NULL
+ SELECT 1 AS Available;
+ ELSE
+ SELECT 0 AS Available;
+
+ true
+
+
+
+ Available
+ System.Int32
+
+
+
+
+
+ DataSource_Private
+
+ SELECT TOP 20
+ FORMAT(DATEDIFF(MI, req.request_start_time, req.runtime), 'N', 'en-us') 'running_duration_minutes',
+ req.request_start_time,
+ 'still running' request_end_time,
+ req.request_logical_reads,
+ FORMAT((req.request_cpu_time / 1000.00 / 60.0), 'N', 'en-us') 'cpu_time_minutes',
+ naq.stmt_text
+ FROM
+ (
+ SELECT runtime,
+ session_id,
+ MAX(request_cpu_time) 'request_cpu_time',
+ MIN(request_start_time) 'request_start_time',
+ MAX(request_logical_reads) 'request_logical_reads'
+ FROM dbo.tbl_REQUESTS
+ GROUP BY runtime,
+ session_id
+ ) req
+ JOIN dbo.tbl_NOTABLEACTIVEQUERIES naq
+ ON req.session_id = naq.session_id
+ AND req.runtime = naq.runtime
+ WHERE req.runtime =
+ (
+ SELECT MAX(runtime)FROM dbo.tbl_REQUESTS
+ )
+ AND naq.runtime =
+ (
+ SELECT MAX(runtime)FROM dbo.tbl_REQUESTS
+ )
+ ORDER BY req.request_cpu_time DESC;
+
+
+
+
+ running_duration_minutes
+ System.String
+
+
+ request_start_time
+ System.DateTime
+
+
+ request_end_time
+ System.String
+
+
+ request_logical_reads
+ System.Int64
+
+
+ cpu_time_minutes
+ System.String
+
+
+ stmt_text
+ System.String
+
+
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ TOP 20 Active CPU Intensive Queries
+
+
+
+
+
+
+ textbox1
+ 2.25in
+ 0.36in
+ 8in
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+ 1.80507in
+
+
+ 1.6059in
+
+
+ 1.63715in
+
+
+ 1.49132in
+
+
+ 1.53299in
+
+
+ 5.26215in
+
+
+
+
+ 0.25in
+
+
+
+
+ true
+ true
+
+
+
+
+ running_duration_minutes
+
+
+
+
+
+
+ Textbox8
+
+
+ =Variables!TableHeadingColor.Value
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ request_start_time
+
+
+
+
+
+
+ Textbox10
+
+
+ =Variables!TableHeadingColor.Value
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ request_end _time
+
+
+
+
+
+
+ Textbox12
+
+
+ =Variables!TableHeadingColor.Value
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ request_logical_reads
+
+
+
+
+
+
+ Textbox14
+
+
+ =Variables!TableHeadingColor.Value
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ cpu_time_minutes
+
+
+
+
+
+
+ Textbox16
+
+
+ =Variables!TableHeadingColor.Value
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ stmt text
+
+
+
+
+
+
+ Textbox18
+
+
+ =Variables!TableHeadingColor.Value
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ 0.25in
+
+
+
+
+ true
+ true
+
+
+
+
+ =Fields!running_duration_minutes.Value
+
+
+
+
+
+
+ running_duration_minutes
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ =Fields!request_start_time.Value
+
+
+
+
+
+
+ request_start_time
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ =Fields!request_end_time.Value
+
+
+
+
+
+
+ request_end_time
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ =Fields!request_logical_reads.Value
+
+
+
+
+
+
+ request_logical_reads
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ =Fields!cpu_time_minutes.Value
+
+
+
+
+
+
+ cpu_time_minutes
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ =Fields!stmt_text.Value
+
+
+
+
+
+
+ stmt_text
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ After
+
+
+
+
+
+
+ DataSet_Running_Queries
+ 1.30083in
+ 1.48833in
+ 0.5in
+ 13.33458in
+ 1
+
+
+
+
+
+ true
+ true
+
+
+
+
+ This report displays top 20 CPU intensive queries that were still running when pssdiag capture was shut down. These queries were not counted by readtrace reports because they only count finished queries
+
+
+
+
+
+
+ Textbox20
+ 0.74875in
+ 1.48833in
+ 0.29167in
+ 13.17833in
+ 2
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+ true
+
+
+
+
+ Show queries for this report.
+
+
+
+
+
+
+ 2.51389in
+ 1.48833in
+ 0.25in
+ 3.74913in
+ 3
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+ true
+ true
+
+
+
+
+ =DataSets!DataSet_Running_Queries.CommandText
+
+
+
+
+
+
+ 0.2257in
+ 0.03125in
+ 0.25in
+ 9.81249in
+
+ true
+ tb_ReportQueryHeader
+
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+ 2.98437in
+ 1.52583in
+ 0.68403in
+ 9.84374in
+ 4
+
+ true
+ tb_ReportQueryHeader
+
+
+
+
+
+
+ 6.25in
+
+
+ =Variables!BodyBackgroundColor.Value
+
+
+ 16.04167in
+
+ 1in
+ 1in
+ 1in
+ 1in
+
+
+
+
+
+
+ String
+
+
+ sqlserver1\inst1
+
+
+ true
+ Server Name
+ true
+
+
+ String
+
+
+ sqlnexus
+
+
+ true
+ Database Name
+ true
+
+
+ String
+
+
+ CPU
+
+
+ true
+ OrderByCriteria
+
+
+ String
+
+
+ #E8F8FF
+
+
+ true
+ FmtAmbientBackground
+ true
+
+
+
+ #E8F8FF
+
+
+
+
+
+
+ String
+
+
+ LightSteelBlue
+
+
+ true
+ true
+
+
+
+ LightSteelBlue
+
+
+
+
+
+
+ String
+
+
+ None
+
+
+ ContrastTheme
+
+
+
+ None
+
+
+
+ Aquatic
+
+
+
+ Desert
+
+
+
+
+
+
+
+
+ 3
+ 3
+
+
+ 0
+ 0
+ dsServerName
+
+
+ 1
+ 0
+ dsDatabaseName
+
+
+ 0
+ 1
+ OrderByCriteria
+
+
+ 1
+ 1
+ FmtAmbientBackground
+
+
+ 2
+ 1
+ FmtChartBackground
+
+
+ 0
+ 2
+ ContrastTheme
+
+
+
+
+ en-US
+
+
+ =Globals!ReportServerUrl = ""
+
+
+
+ =Switch(Parameters!ContrastTheme.Value="Aquatic", "#FFFFFF",
+ Parameters!ContrastTheme.Value="Desert", "#3D3D3D",
+ Parameters!ContrastTheme.Value="None", "Black")
+
+
+
+
+ =Switch(Parameters!ContrastTheme.Value="Aquatic", "#202020",
+ Parameters!ContrastTheme.Value="Desert", "#FFFAEF",
+ Parameters!ContrastTheme.Value="None", "#FAFDFF")
+
+
+
+
+ =Switch(Parameters!ContrastTheme.Value="Aquatic", "#FFFFFF",
+ Parameters!ContrastTheme.Value="Desert", "#3D3D3D",
+ Parameters!ContrastTheme.Value="None", "SteelBlue")
+
+
+
+
+ =Switch(Parameters!ContrastTheme.Value="Aquatic", "#202020",
+ Parameters!ContrastTheme.Value="Desert", "#FFFAEF",
+ Parameters!ContrastTheme.Value="None", "SteelBlue")
+
+
+
+
+ =Switch(Parameters!ContrastTheme.Value="Aquatic", "#202020",
+ Parameters!ContrastTheme.Value="Desert", "#FFFAEF",
+ Parameters!ContrastTheme.Value="None", "LightSteelBlue")
+
+
+
+
+ =Switch(Parameters!ContrastTheme.Value="Aquatic", "No Color",
+ Parameters!ContrastTheme.Value="Desert", "No Color",
+ Parameters!ContrastTheme.Value="None", "Automatic")
+
+
+
+
+ =Switch(Parameters!ContrastTheme.Value="Aquatic", "None",
+ Parameters!ContrastTheme.Value="Desert", "None",
+ Parameters!ContrastTheme.Value="None", "TopBottom")
+
+
+
+ "Red"
+
+
+ "Green"
+
+
+
+ =Switch(Parameters!ContrastTheme.Value="Aquatic", "#FFFFFF",
+ Parameters!ContrastTheme.Value="Desert", "#3D3D3D",
+ Parameters!ContrastTheme.Value="None", "#FFFFFF")
+
+
+
+
+ =Switch(Parameters!ContrastTheme.Value="Aquatic", "#75E9FC",
+ Parameters!ContrastTheme.Value="Desert", "#1C5E75",
+ Parameters!ContrastTheme.Value="None", "Blue")
+
+
+
+ true
+ Inch
+ 88d1de3b-a4e1-4ca9-8aaa-ee5f4b1cec14
\ No newline at end of file
diff --git a/NexusReports/Active Traces and XEvents_C - Backup.rdl b/NexusReports/Active Traces and XEvents_C - Backup.rdl
deleted file mode 100644
index 1cf27fa5..00000000
--- a/NexusReports/Active Traces and XEvents_C - Backup.rdl
+++ /dev/null
@@ -1,1250 +0,0 @@
-
-
- 0
-
-
-
- SQL
- ="data source=" & Parameters!dsServerName.Value & ";Connect Timeout=60;initial catalog="&Parameters!dsDatabaseName.Value
- true
-
- Integrated
- af2b7bc2-6e25-4254-9bc8-158577b66b97
-
-
-
- SQL
- Data Source=.\sql14a;Initial Catalog=ActiveTraces
- true
-
- Integrated
- 483c50d9-5142-43fd-8a1e-6da7035bb523
-
-
-
-
-
- DataSource_SqlNexus_Private
- select cast ('1990/1/1' as datetime) as StartTime
- true
-
-
-
- StartTime
- System.String
-
-
-
-
-
- DataSource_SqlNexus_Private
- select cast ('2099/1/1' as datetime) as EndTime
- true
-
-
-
- EndTime
- System.String
-
-
-
-
-
- DataSource_SqlNexus_Private
- select cast ('1990/1/1' as datetime) as AvailableTime
- union
- select cast('2099/1/1' as datetime) as AvailableTime
-
- true
-
-
-
- AvailableTime
- System.String
-
-
-
-
-
- DataSource_test
- select distinct trace_id, [Value] trace_file_path, trace_event_name,
-case when [Value] like '%\log\log%' or [value] like '%sp_trace%' then 1 else 0 end 'Is_Microsoft_Trace'
-from tbl_trace_event_details det right outer join tbl_profiler_trace_summary sm on det.trace_id=sm.traceid
-where sm.property=2
-
-
-
- trace_id
- System.Int64
-
-
- trace_file_path
- System.String
-
-
- trace_event_name
- System.String
-
-
- Is_Microsoft_Trace
- System.Int32
-
-
-
-
-
- DataSource_test
- select session_name, event_name ,
-case when session_name in ('sp_server_diagnostics session', 'hkenginexesession', 'system_health') then 1 else 0 end 'Is_Microsoft_Session'
-from tbl_XEvents
-
-
-
- session_name
- System.String
-
-
- event_name
- System.String
-
-
- Is_Microsoft_Session
- System.Int32
-
-
-
-
-
-
-
-
-
- true
- true
-
-
-
-
- Active Traces & XEvents
-
-
-
-
-
-
- Title
- ReportTitle
- 0.10708in
- 0.94458in
- 0.275in
- 9.79166in
-
-
- 2pt
- 2pt
- 2pt
- 2pt
-
-
-
- true
- true
-
-
-
-
- Active non-Microsoft traces
-
-
-
-
-
-
- 0.53in
- 0.94458in
- 0.25in
- 9.75832in
- 1
-
-
- 2pt
- 2pt
- 2pt
- 2pt
-
-
-
-
-
-
- 3.98749in
-
-
-
-
- 0.25in
-
-
-
-
- true
- true
-
-
-
-
- trace event name
-
-
-
-
-
-
- Textbox32
-
-
- 2pt
- 2pt
- 2pt
- 2pt
-
-
-
-
-
-
-
- 0.25in
-
-
-
-
- true
- true
- true
-
-
-
-
- =Fields!trace_event_name.Value
-
-
-
-
-
-
- trace_event_name
-
-
- 2pt
- 2pt
- 2pt
- 2pt
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 5.83333in
-
-
- true
- true
-
-
-
-
- trace file path
-
-
-
-
-
-
- Textbox36
-
-
- 2pt
- 2pt
- 2pt
- 2pt
-
-
-
-
-
-
-
- After
-
-
-
-
- =Fields!trace_file_path.Value
-
-
-
-
- =Fields!trace_file_path.Value
-
-
-
- 5.83333in
-
-
- true
- true
-
-
-
-
- =Fields!trace_file_path.Value
-
-
-
-
-
-
- trace_file_path1
-
-
- 2pt
- 2pt
- 2pt
- 2pt
-
-
-
-
-
-
-
-
-
-
-
-
- DataSet_ActiveTraces
-
-
- =Fields!Is_Microsoft_Trace.Value
- Equal
-
- 0
-
-
-
-
-
- =Fields!trace_file_path.Value
-
-
- =Fields!trace_event_name.Value
-
-
- 0.93625in
- 0.91542in
- 0.5in
- 9.82082in
- 2
-
- true
- Textbox_Active_Non_MicrosoftTrace
-
-
-
-
-
-
- true
- true
-
-
-
-
- Active non-Microsoft XEvents
-
-
-
-
-
-
- 1.66542in
- 0.95708in
- 0.25in
- 9.74582in
- 3
-
-
- 2pt
- 2pt
- 2pt
- 2pt
-
-
-
-
-
-
- 3.95415in
-
-
-
-
- 0.25in
-
-
-
-
- true
- true
-
-
-
-
- event name
-
-
-
-
-
-
- Textbox80
-
-
- 2pt
- 2pt
- 2pt
- 2pt
-
-
-
-
-
-
-
- 0.25in
-
-
-
-
- true
- true
-
-
-
-
- =Fields!event_name.Value
-
-
-
-
-
-
- event_name
-
-
- 2pt
- 2pt
- 2pt
- 2pt
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 5.75in
-
-
- true
- true
-
-
-
-
- session name
-
-
-
-
-
-
- Textbox89
-
-
- 2pt
- 2pt
- 2pt
- 2pt
-
-
-
-
-
-
-
-
-
-
-
- =Fields!session_name.Value
-
-
-
-
- =Fields!session_name.Value
-
-
-
- 5.75in
-
-
- true
- true
-
-
-
-
- =Fields!session_name.Value
-
-
-
-
-
-
- session_name
-
-
- 2pt
- 2pt
- 2pt
- 2pt
-
-
-
-
-
-
-
-
-
-
-
-
- DataSet_ActiveXEvents
-
-
- =Fields!Is_Microsoft_Session.Value
- Equal
-
- 0
-
-
-
-
-
- =Fields!session_name.Value
-
-
- =Fields!event_name.Value
-
-
- 2.13417in
- 0.99875in
- 0.5in
- 9.70415in
- 4
-
- true
- Textbox_non_microsoft_xevents
-
-
-
-
-
-
- true
- true
-
-
-
-
- Active Microsoft Traces
-
-
-
-
-
-
- 2.85292in
- 0.98833in
- 0.25in
- 9.71457in
- 5
-
-
- 2pt
- 2pt
- 2pt
- 2pt
-
-
-
-
-
-
- 3.95415in
-
-
-
-
- 0.25in
-
-
-
-
- true
- true
-
-
-
-
- trace event name
-
-
-
-
-
-
- Textbox98
-
-
- 2pt
- 2pt
- 2pt
- 2pt
-
-
-
-
-
-
-
- 0.25in
-
-
-
-
- true
- true
-
-
-
-
- =Fields!trace_event_name.Value
-
-
-
-
-
-
- trace_event_name1
-
-
- 2pt
- 2pt
- 2pt
- 2pt
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 5.77083in
-
-
- true
- true
-
-
-
-
- trace file path1
-
-
-
-
-
-
- Textbox104
-
-
- 2pt
- 2pt
- 2pt
- 2pt
-
-
-
-
-
-
-
- After
-
-
-
-
- =Fields!trace_file_path.Value
-
-
-
-
- =Fields!trace_file_path.Value
-
-
-
- 5.77083in
-
-
- true
- true
-
-
-
-
- =Fields!trace_file_path.Value
-
-
-
-
-
-
- trace_file_path11
-
-
- 2pt
- 2pt
- 2pt
- 2pt
-
-
-
-
-
-
-
-
-
-
-
-
- DataSet_ActiveTraces
-
-
- =Fields!Is_Microsoft_Trace.Value
- Equal
-
- 1
-
-
-
-
-
- =Fields!trace_file_path.Value
-
-
- =Fields!trace_event_name.Value
-
-
- 3.32167in
- 0.97792in
- 0.5in
- 9.72498in
- 6
-
- true
- Textbox_Active_Microsoft_traces
-
-
-
-
-
-
- true
- true
-
-
-
-
- Active Microsoft XEvents
-
-
-
-
-
-
- 3.98834in
- 1.00917in
- 0.25in
- 9.69374in
- 7
-
-
- 2pt
- 2pt
- 2pt
- 2pt
-
-
-
-
-
-
- 3.95415in
-
-
-
-
- 0.25in
-
-
-
-
- true
- true
-
-
-
-
- event name
-
-
-
-
-
-
- Textbox107
-
-
- 2pt
- 2pt
- 2pt
- 2pt
-
-
-
-
-
-
-
- 0.25in
-
-
-
-
- true
- true
-
-
-
-
- =Fields!event_name.Value
-
-
-
-
-
-
- event_name1
-
-
- 2pt
- 2pt
- 2pt
- 2pt
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 5.75in
-
-
- true
- true
-
-
-
-
- session name1
-
-
-
-
-
-
- Textbox114
-
-
- 2pt
- 2pt
- 2pt
- 2pt
-
-
-
-
-
-
-
- After
-
-
-
-
- =Fields!session_name.Value
-
-
-
-
- =Fields!session_name.Value
-
-
-
- 5.75in
-
-
- true
- true
-
-
-
-
- =Fields!session_name.Value
-
-
-
-
-
-
- session_name1
-
-
- 2pt
- 2pt
- 2pt
- 2pt
-
-
-
-
-
-
-
-
-
-
-
-
- DataSet_ActiveXEvents
-
-
- =Fields!session_name.Value
-
-
- =Fields!event_name.Value
-
-
- 4.47792in
- 0.98833in
- 0.5in
- 9.70415in
- 8
-
- true
- Textbox_Active_Microsoft_XEvents
-
-
-
-
-
-
- 5.31264in
-
-
- =Parameters!FmtAmbientBackground.Value
-
-
- 11.73624in
-
-
- 0.48958in
- true
- true
-
-
-
-
-
- 0.01042in
- true
- true
-
-
-
-
- 0in
- 8.5in
- 1in
- 1in
- 1in
- 1in
-
-
-
-
-
-
- String
-
-
- sqlserver1\inst1
-
-
- true
- Server Name
- true
-
-
- String
-
-
- sqlnexus
-
-
- true
- Databsae Name
- true
-
-
- String
-
-
- #E8F8FF
-
-
- true
- FmtAmbientBackground
- true
-
-
- String
-
-
- LightSteelBlue
-
-
- true
- FmtChartBackground
- true
-
-
- DateTime
- true
-
-
- DataSet_StartTime
- StartTime
-
-
- Start Time
-
-
- DataSet_AvailableTime
- AvailableTime
- AvailableTime
-
-
-
-
- DateTime
- true
-
-
- DataSet_EndTime
- EndTime
-
-
- End Time
-
-
- DataSet_AvailableTime
- AvailableTime
- AvailableTime
-
-
-
-
- String
-
-
- Plum
-
-
- ReportParameter1
- true
-
-
- String
-
-
- 14
-
-
- ReportParameter1
- true
-
-
- String
-
-
- Blue
-
-
- hyperlink color
- true
-
-
-
-
- = (Globals!ReportServerUrl="")
-
-
- Inch
- a76e7f4b-33f9-4c5d-b662-abe74d8c86e8
-
\ No newline at end of file
diff --git a/NexusReports/Active Traces and XEvents_C.rdl b/NexusReports/Active Traces and XEvents_C.rdl
index 3df6b49b..ff177f4a 100644
--- a/NexusReports/Active Traces and XEvents_C.rdl
+++ b/NexusReports/Active Traces and XEvents_C.rdl
@@ -5,7 +5,7 @@
SQL
- ="data source=" & Parameters!dsServerName.Value & ";Connect Timeout=60;initial catalog="&Parameters!dsDatabaseName.Value
+ Data Source=.;Initial Catalog=sqlnexus
true
Integrated
@@ -168,7 +168,10 @@ FROM dbo.tbl_XEvents;
Active Traces & XEvents
@@ -181,7 +184,7 @@ FROM dbo.tbl_XEvents;
ReportTitle
0.10708in
0.94458in
- 0.275in
+ 0.35348in
9.79166in
@@ -246,7 +253,9 @@ FROM dbo.tbl_XEvents;
trace event name
-
+
@@ -258,6 +267,7 @@ FROM dbo.tbl_XEvents;
LightGrey
+ =Variables!TableHeadingColor.Value
2pt
2pt
2pt
@@ -276,7 +286,9 @@ FROM dbo.tbl_XEvents;
expensive event
-
+
@@ -288,6 +300,7 @@ FROM dbo.tbl_XEvents;
LightGrey
+ =Variables!TableHeadingColor.Value
2pt
2pt
2pt
@@ -312,7 +325,9 @@ FROM dbo.tbl_XEvents;
=Fields!trace_event_name.Value
-
+
@@ -342,7 +357,9 @@ FROM dbo.tbl_XEvents;
=Fields!expensive_event.Value
-
+
@@ -386,7 +403,9 @@ FROM dbo.tbl_XEvents;
trace file path
-
+
@@ -398,6 +417,7 @@ FROM dbo.tbl_XEvents;
LightGrey
+ =Variables!TableHeadingColor.Value
2pt
2pt
2pt
@@ -433,7 +453,9 @@ FROM dbo.tbl_XEvents;
=Fields!trace_file_path.Value
-
+
@@ -480,9 +502,9 @@ FROM dbo.tbl_XEvents;
0.93625in
- 0.91542in
+ 0.97792in
0.5in
- 11.00623in
+ 9.82082in
2
true
@@ -502,13 +524,17 @@ FROM dbo.tbl_XEvents;
Active non-Microsoft XEvents
-
+
- 1.66542in
+ 1.67584in
0.95708in
0.25in
9.74582in
@@ -547,7 +573,9 @@ FROM dbo.tbl_XEvents;
event name
-
+
@@ -559,6 +587,7 @@ FROM dbo.tbl_XEvents;
LightGrey
+ =Variables!TableHeadingColor.Value
2pt
2pt
2pt
@@ -577,7 +606,9 @@ FROM dbo.tbl_XEvents;
expensive event
-
+
@@ -589,6 +620,7 @@ FROM dbo.tbl_XEvents;
LightGrey
+ =Variables!TableHeadingColor.Value
2pt
2pt
2pt
@@ -612,7 +644,9 @@ FROM dbo.tbl_XEvents;
=Fields!event_name.Value
-
+
@@ -642,7 +676,9 @@ FROM dbo.tbl_XEvents;
=Fields!expensive_event.Value
-
+
@@ -686,7 +722,9 @@ FROM dbo.tbl_XEvents;
session name
-
+
@@ -698,6 +736,7 @@ FROM dbo.tbl_XEvents;
LightGrey
+ =Variables!TableHeadingColor.Value
2pt
2pt
2pt
@@ -732,7 +771,9 @@ FROM dbo.tbl_XEvents;
=Fields!session_name.Value
-
+
@@ -801,14 +842,18 @@ FROM dbo.tbl_XEvents;
Active Microsoft Traces
-
+
- 2.85292in
- 0.98833in
+ 2.86334in
+ 0.96333in
0.25in
9.71457in
5
@@ -843,7 +888,9 @@ FROM dbo.tbl_XEvents;
trace event name
-
+
@@ -855,6 +902,7 @@ FROM dbo.tbl_XEvents;
LightGrey
+ =Variables!TableHeadingColor.Value
2pt
2pt
2pt
@@ -878,7 +926,9 @@ FROM dbo.tbl_XEvents;
=Fields!trace_event_name.Value
-
+
@@ -921,7 +971,9 @@ FROM dbo.tbl_XEvents;
trace file path1
-
+
@@ -933,6 +985,7 @@ FROM dbo.tbl_XEvents;
LightGrey
+ =Variables!TableHeadingColor.Value
2pt
2pt
2pt
@@ -968,7 +1021,9 @@ FROM dbo.tbl_XEvents;
=Fields!trace_file_path.Value
-
+
@@ -1017,7 +1072,7 @@ FROM dbo.tbl_XEvents;
3.32167in
0.97792in
0.5in
- 9.72498in
+ 10.94373in
6
true
@@ -1037,14 +1092,18 @@ FROM dbo.tbl_XEvents;
Active Microsoft XEvents
-
+
- 3.98834in
- 1.00917in
+ 3.99876in
+ 0.97167in
0.25in
9.69374in
7
@@ -1079,7 +1138,9 @@ FROM dbo.tbl_XEvents;
event name
-
+
@@ -1091,6 +1152,7 @@ FROM dbo.tbl_XEvents;
LightGrey
+ =Variables!TableHeadingColor.Value
2pt
2pt
2pt
@@ -1114,7 +1176,9 @@ FROM dbo.tbl_XEvents;
=Fields!event_name.Value
-
+
@@ -1156,8 +1220,10 @@ FROM dbo.tbl_XEvents;
- session name1
-
+ session name
+
@@ -1169,6 +1235,7 @@ FROM dbo.tbl_XEvents;
LightGrey
+ =Variables!TableHeadingColor.Value
2pt
2pt
2pt
@@ -1204,7 +1271,9 @@ FROM dbo.tbl_XEvents;
=Fields!session_name.Value
-
+
@@ -1275,6 +1344,7 @@ FROM dbo.tbl_XEvents;
Show queries for this report.
@@ -1282,7 +1352,7 @@ FROM dbo.tbl_XEvents;
5.21542in
- 0.94458in
+ 0.98208in
0.25in
3.74913in
9
@@ -1306,7 +1376,9 @@ FROM dbo.tbl_XEvents;
=DataSets!DataSet_ActiveTraces.CommandText
-
+
@@ -1338,7 +1410,9 @@ FROM dbo.tbl_XEvents;
=DataSets!DataSet_ActiveXEvents.CommandText
-
+
@@ -1366,7 +1440,7 @@ FROM dbo.tbl_XEvents;
true
5.65986in
- 0.89042in
+ 1.01542in
0.88542in
9.87707in
10
@@ -1376,6 +1450,7 @@ FROM dbo.tbl_XEvents;
@@ -1386,7 +1461,7 @@ FROM dbo.tbl_XEvents;
- =Parameters!FmtAmbientBackground.Value
+ =Variables!BodyBackgroundColor.Value