From 1a2f0255d377efb8b8a73bdf388a3eb6e041d8a8 Mon Sep 17 00:00:00 2001 From: hacitandogan Date: Fri, 1 Sep 2023 12:56:30 +0300 Subject: [PATCH 1/7] #232 If a report uses multiple tables it should not appear on SQL Perf Main report when not all tables are present worked on the #232 --- NexusReports/NexusReports.rptproj.rsuser | Bin 3195 -> 3195 bytes NexusReports/SQL Perf Main.rdl | 90 ++++++++++++++++------- sqlnexus/Reports/SQL Perf Main.rdl | 90 ++++++++++++++++------- 3 files changed, 128 insertions(+), 52 deletions(-) diff --git a/NexusReports/NexusReports.rptproj.rsuser b/NexusReports/NexusReports.rptproj.rsuser index 7abce42e4d294329f4041dd1ef8c20fe62500608..aed240b24e48bfcc6c5e091a0954f5b9d7926d5d 100644 GIT binary patch delta 126 zcmV-^0D=Ge82cEotO5ZWldS?E0g98(0wEd0EGYh82cEotO5ZOldS?E0f3Xv0wEd)YHx69Y;Sf34gdfE3}|6vX>?(3WN&9- zZnFskaR!sT2@8{j2^N!j2@A8P2~zcGQ3>nLqD0%<@ diff --git a/NexusReports/SQL Perf Main.rdl b/NexusReports/SQL Perf Main.rdl index 8a5593e..269d00c 100644 --- a/NexusReports/SQL Perf Main.rdl +++ b/NexusReports/SQL Perf Main.rdl @@ -34,30 +34,35 @@ CategorySeq int --common - insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) -values ('AnalysisSummary_C', 'Best Practice & Analysis Summary', 'Most common things observed from analyzing the data', 1|2|4|8, 'Analysis Results', 'dbo.tbl_AnalysisSummary', 500, 'Perf Stats Collector', 1,500) - - +values ('AnalysisSummary_C', 'Best Practice & Analysis Summary', 'Most common things observed from analyzing the data', 1|2|4|8, 'Analysis Results', 'dbo.tbl_AnalysisSummary', 500, 'Perf Stats Collector', 1,500) insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) values ('Loaded Modules_C', 'Loaded Modules', 'Modules loaded in SQL Server address space', 1|2|4|8, 'Common', 'dbo.tbl_dm_os_loaded_modules', 500, 'Perf Stats Collector', 1,2000) + insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) values ('ServerConfiguration_C', 'Server Configuration', 'Common properties such as RAM, CPU, sp_configure, trace flags and startup prameters', 1|2|4|8, 'Common', 'dbo.tbl_ServerProperties', 200, 'SQL Base Collector', 1,2000) + insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) values ('DatabaseConfiguration_C', 'Database Configuration', 'Common properties such as files, auto update stats etc', 1|2|4|8, 'Common', 'dbo.tbl_SysDatabases', 200, 'SQL Base Collector', 1,2000) - --RML insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) -values ('AnalysisSummary_C', 'Best Practice & Analysis Summary', 'Most common things observed from analyzing the data', 1|2|4|8, 'Performance', 'dbo.tbl_AnalysisSummary', 110, 'Perf Stats Collector', 1,3000) +values ('AnalysisSummary_C', 'Best Practice & Analysis Summary', 'Most common things observed from analyzing the data', 1|2|4|8, 'Performance', 'dbo.tbl_AnalysisSummary', 110, 'Perf Stats Collector', 1,3000) insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) values ('ReadTrace_Main', 'ReadTrace Reports', 'ReadTrace reports for Profiler traces or Extended Events/XEvents', 1|2|4|8,'Performance', 'readtrace.tblBatches', 100, 'Profiler Trace', 1,3000) insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq ) values ('Bottleneck Analysis_C', 'Bottleneck Analysis', 'Bottleneck Analysis',2 | 4,'Performance', 'dbo.tbl_REQUESTS', 200, 'Perf Stats Collector', 1,3000) - +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq ) +values ('Bottleneck Analysis_C', 'Bottleneck Analysis', 'Bottleneck Analysis',2 | 4,'Performance', 'dbo.tbl_SCRIPT_ENVIRONMENT_DETAILS', 200, 'Perf Stats Collector', 1,3000) +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq ) +values ('Bottleneck Analysis_C', 'Bottleneck Analysis', 'Bottleneck Analysis',2 | 4,'Performance', 'dbo.tbl_ServerProperties', 200, 'Perf Stats Collector', 1,3000) +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq ) +values ('Bottleneck Analysis_C', 'Bottleneck Analysis', 'Bottleneck Analysis',2 | 4,'Performance', 'dbo.CounterData', 200, 'Perf Stats Collector', 1,3000) +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq ) +values ('Bottleneck Analysis_C', 'Bottleneck Analysis', 'Bottleneck Analysis',2 | 4,'Performance', 'dbo.CounterDetails', 200, 'Perf Stats Collector', 1,3000) insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq ) values ('Blocking and Wait Statistics_C', 'Blocking and Wait Statistics', 'Blocking and wait statistics', 2 | 4, 'Performance', 'dbo.tbl_REQUESTS', 300, 'Perf Stats Collector', 1, 3000) @@ -65,76 +70,106 @@ values ('Blocking and Wait Statistics_C', 'Blocking and Wait Statistics', 'Block insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq ) values ('LockSummary_C', 'Lock Count Summary', 'Lock count graphed by resources', 2 | 4, 'Performance', 'dbo.tbl_locksummary', 4000, 'Perf Stats Collector', 1, 3000) - insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) values ('Spinlock Stats_C', 'Spin Lock Stats', 'Spin Lock Stats', 2 | 4,'Performance', 'dbo.tbl_SPINLOCKSTATS',4000, 'Perf Stats Collector', 1,3000) insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) values ('Query Hash_C', 'Query Hash', 'Top 10 queries from query hash that consume most CPU, IO or logical reads', 4, 'Performance', 'dbo.tbl_TopNLogicalReadsByQueryHash', 4000, 'Perf Stats Collector', 1,3000) +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) +values ('Query Hash_C', 'Query Hash', 'Top 10 queries from query hash that consume most CPU, IO or logical reads', 4, 'Performance', 'dbo.tbl_TopNDurationByQueryHash', 4000, 'Perf Stats Collector', 1,3000) +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) +values ('Query Hash_C', 'Query Hash', 'Top 10 queries from query hash that consume most CPU, IO or logical reads', 4, 'Performance', 'dbo.tbl_TopNCPUByQueryHash', 4000, 'Perf Stats Collector', 1,3000) insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) values ('Missing Indexes_C', 'Missing Indexes', 'Missing Indexes captured by SQL Server DMVs', 2|4|8,'Performance', 'dbo.tbl_missingindexes', 4000, 'Perf Stats Collector', 1,3000) - insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) values ('SQL 2000 Blocking_C', 'SQL Server 2000 blocking', 'SQL Server 2000 blocking', 1, 'Performance', 'dbo.tbl_sysprocesses', 4000, 'SQL 2000 blocking collector', 1,3000) - insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) values ('Perfmon_C', 'Perfmon Summary', 'Summary of most commonly looked at counters', 1|2|4|8, 'Performance', 'dbo.counterdata', 4000, 'Perfmon', 1,3000) +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) +values ('Perfmon_C', 'Perfmon Summary', 'Summary of most commonly looked at counters', 1|2|4|8, 'Performance', 'dbo.counterdetails', 4000, 'Perfmon', 1,3000) insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) values ('Virtual File Stats_C', 'Virtual File Stats', 'Display Virtual File Stats related to IO performance', 1|2|4|8, 'Performance', 'dbo.tbl_FileStats', 4000, 'Perf Stats Collector', 1,3000) - insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) values ('Memory Brokers_C', 'Memory Brokers', 'Display memory brokers', 1|2|4|8, 'Performance', 'dbo.tbl_dm_os_memory_brokers', 4000, 'Perf Stats Collector', 1,3000) +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) +values ('Memory Brokers_C', 'Memory Brokers', 'Display memory brokers', 1|2|4|8, 'Performance', 'dbo.tbl_dm_os_memory_clerks', 4000, 'Perf Stats Collector', 1,3000) insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) values ('SysIndexes_C', 'Indexes and Stats', 'Display Stats info on indexes and stats', 1|2|4|8, 'Performance', 'dbo.tbl_SysIndexes', 4000, 'Perf Stats Collector', 1,3000) - - insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) values ('Query Execution Memory_C', 'Query Execution Memory (Memory Grants)', 'Displays Query Execution Memory', 1|2|4|8, 'Performance', 'dbo.tbl_Query_Execution_Memory', 4000, 'SQL Memory Error Collector', 1,3000) insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) values ('Memory Clerks_C', 'Memory Clerks', 'Displays sys.dm_Os_memory_clerks', 1|2|4|8, 'Performance', 'dbo.tbl_DM_OS_MEMORY_CLERKS', 4000, 'SQL Memory Error Collector', 1,3000) - insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) values ('Working Set Trim_C', 'Workingset Triming', 'Displays Workignset trimming info', 1|2|4|8, 'Performance', 'dbo.tbl_workingset_trimming', 4000, 'SQL Memory Error Colelctor', 1,3000) - insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) values ('TopPlanAnalysis_C', 'Tables used by top queries', 'Tables used by top CPU consuming queries', 1|2|4|8, 'Performance', 'dbo.tblObjectsUsedByTopPlans', 4000, 'Perf Stats Collector', 1,3000) - +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) +values ('TopPlanAnalysis_C', 'Tables used by top queries', 'Tables used by top CPU consuming queries', 1|2|4|8, 'Performance', 'dbo.tbl_Sys_Configurations', 4000, 'Perf Stats Collector', 1,3000) insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) values ('Query_Store_C', 'Query Store Query Analysis', 'Query Store Queries Aggregated at Server level', 1|2|4|8, 'Performance', 'dbo.tbl_query_store_runtime_stats_interval', 4000, 'Query Store Collector', 1,3000) - +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) +values ('Query_Store_C', 'Query Store Query Analysis', 'Query Store Queries Aggregated at Server level', 1|2|4|8, 'Performance', 'dbo.tbl_query_store_runtime_stats', 4000, 'Query Store Collector', 1,3000) +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) +values ('Query_Store_C', 'Query Store Query Analysis', 'Query Store Queries Aggregated at Server level', 1|2|4|8, 'Performance', 'dbo.tbl_query_store_plan', 4000, 'Query Store Collector', 1,3000) +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) +values ('Query_Store_C', 'Query Store Query Analysis', 'Query Store Queries Aggregated at Server level', 1|2|4|8, 'Performance', 'dbo.tbl_query_store_query', 4000, 'Query Store Collector', 1,3000) +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) +values ('Query_Store_C', 'Query Store Query Analysis', 'Query Store Queries Aggregated at Server level', 1|2|4|8, 'Performance', 'dbo.tbl_query_store_query_text', 4000, 'Query Store Collector', 1,3000) insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) values ('Active Queries_C', 'Active CPU Consuming Queries', 'Active CPU Consuming Queries', 1|2|4|8, 'Performance', 'dbo.tbl_Requests', 4000, 'Perf Stats Collector', 1,3000) +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) +values ('Active Queries_C', 'Active CPU Consuming Queries', 'Active CPU Consuming Queries', 1|2|4|8, 'Performance', 'dbo.tbl_NOTABLEACTIVEQUERIES', 4000, 'Perf Stats Collector', 1,3000) insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) values ('System_Requests_C', 'System Thread CPU Consumption', 'System Thread CPU Consumption', 1|2|4|8, 'Performance', 'dbo.tbl_System_Requests', 4000, 'Perf Stats Collector', 1,3000) insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) values ('Active Traces and XEvents_C', 'Active Trace and XEvent Report', 'Active Trace and XEvent report', 1|2|4|8, 'Performance', 'dbo.tbl_profiler_trace_summary', 3000, 'Perf Stats Collector', 1,3000) +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) +values ('Active Traces and XEvents_C', 'Active Trace and XEvent Report', 'Active Trace and XEvent report', 1|2|4|8, 'Performance', 'dbo.tbl_profiler_trace_event_details', 3000, 'Perf Stats Collector', 1,3000) +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) +values ('Active Traces and XEvents_C', 'Active Trace and XEvent Report', 'Active Trace and XEvent report', 1|2|4|8, 'Performance', 'dbo.tbl_XEvents', 3000, 'Perf Stats Collector', 1,3000) insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) values ('Tempdb_Space_Use_C', 'Tempdb Space Usage', 'Breakdown of space usage in tempdb', 1|2|4|8, 'Performance', 'dbo.tbl_dm_db_file_space_usage', 4000, 'Tempdb and Trans Collector', 1,3000) - +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) +values ('Tempdb_Space_Use_C', 'Tempdb Space Usage', 'Breakdown of space usage in tempdb', 1|2|4|8, 'Performance', 'dbo.tbl_dm_db_session_space_usage', 4000, 'Tempdb and Trans Collector', 1,3000) +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) +values ('Tempdb_Space_Use_C', 'Tempdb Space Usage', 'Breakdown of space usage in tempdb', 1|2|4|8, 'Performance', 'dbo.tbl_dm_db_task_space_usage', 4000, 'Tempdb and Trans Collector', 1,3000) --Replication insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) values ('Replication_Topology_C', 'Replication Topology', 'Replication Topology in hierarchycal order', 1|2|4|8, 'Replication', 'dbo.tbl_repl_sysservers', 200, 'Replication', 1,2000) +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) +values ('Replication_Topology_C', 'Replication Topology', 'Replication Topology in hierarchycal order', 1|2|4|8, 'Replication', 'dbo.tbl_repl_mspublications', 200, 'Replication', 1,2000) +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) +values ('Replication_Topology_C', 'Replication Topology', 'Replication Topology in hierarchycal order', 1|2|4|8, 'Replication', 'dbo.tbl_repl_msreplservers', 200, 'Replication', 1,2000) +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) +values ('Replication_Topology_C', 'Replication Topology', 'Replication Topology in hierarchycal order', 1|2|4|8, 'Replication', 'dbo.tbl_repl_msarticles', 200, 'Replication', 1,2000) +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) +values ('Replication_Topology_C', 'Replication Topology', 'Replication Topology in hierarchycal order', 1|2|4|8, 'Replication', 'dbo.tbl_repl_mssubscriptions', 200, 'Replication', 1,2000) +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) +values ('Replication_Topology_C', 'Replication Topology', 'Replication Topology in hierarchycal order', 1|2|4|8, 'Replication', 'dbo.tbl_repl_msmerge_subscriptions', 200, 'Replication', 1,2000) --AG - insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) values ('AlwaysOn_AGBasics_C', 'Always On Configuration Report', 'Always On Configuration Report', 1|2|4|8, 'Always On', 'dbo.tbl_hadr_ag_states', 3000, 'AG Diag Collector', 1,3000) +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) +values ('AlwaysOn_AGBasics_C', 'Always On Configuration Report', 'Always On Configuration Report', 1|2|4|8, 'Always On', 'dbo.tbl_hadr_ag_listeners', 3000, 'AG Diag Collector', 1,3000) +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) +values ('AlwaysOn_AGBasics_C', 'Always On Configuration Report', 'Always On Configuration Report', 1|2|4|8, 'Always On', 'dbo.tbl_hadr_ag_ip_information', 3000, 'AG Diag Collector', 1,3000) -- Filter drivers insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) @@ -154,14 +189,17 @@ values ('WASD_ResourceStats_C', 'sys.resource_stats', 'Snapshot from sys.resourc insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection, Manditory,CategorySeq) values ('WASD_SloStats_C', 'SLO change history', 'Shows the changes in service level objective for databases', 1|2|4|8, 'Azure', 'dbo.tbl_SLO_HISTORY', 400, 'Azure Perf Stats Collector', 1,1000) -select -CategorySeq, Category, ReportName, ReportDisplayName, ReportDescription, DataCollection, SeqNo, MAX(ReportAvailable) ReportAvailable -from +--final Select to calc available reports +SELECT +CategorySeq, Category, ReportName, ReportDisplayName, ReportDescription, DataCollection, SeqNo, CASE WHEN (SUM(ReportAvailable) - COUNT(ReportAvailable)) = 0 THEN 1 ELSE 0 END ReportAvailable +FROM ( -select CategorySeq,Category, ReportName, ReportDisplayName, ReportDescription, DataCollection, case when indx.rowcnt >0 then 1 else 0 end ReportAvailable, SeqNo - from @tbl_reports rep left outer join sysindexes indx on ( OBJECT_ID (rep.ValidationObject) = indx.id and indx.indid in (0,1,300)) ) t - group by CategorySeq, Category, ReportName, ReportDisplayName, ReportDescription, DataCollection, SeqNo - order by CategorySeq, SeqNo, ReportName +SELECT CategorySeq,Category, ReportName, ReportDisplayName, ReportDescription, DataCollection, CASE WHEN indx.rowcnt >0 THEN 1 ELSE 0 END ReportAvailable, SeqNo +FROM @tbl_reports rep +LEFT OUTER JOIN sysindexes indx ON ( OBJECT_ID (rep.ValidationObject) = indx.id and indx.indid in (0,1,300)) + ) t +GROUP BY CategorySeq, Category, ReportName, ReportDisplayName, ReportDescription, DataCollection, SeqNo +ORDER BY CategorySeq, SeqNo, ReportName true diff --git a/sqlnexus/Reports/SQL Perf Main.rdl b/sqlnexus/Reports/SQL Perf Main.rdl index 8a5593e..269d00c 100644 --- a/sqlnexus/Reports/SQL Perf Main.rdl +++ b/sqlnexus/Reports/SQL Perf Main.rdl @@ -34,30 +34,35 @@ CategorySeq int --common - insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) -values ('AnalysisSummary_C', 'Best Practice & Analysis Summary', 'Most common things observed from analyzing the data', 1|2|4|8, 'Analysis Results', 'dbo.tbl_AnalysisSummary', 500, 'Perf Stats Collector', 1,500) - - +values ('AnalysisSummary_C', 'Best Practice & Analysis Summary', 'Most common things observed from analyzing the data', 1|2|4|8, 'Analysis Results', 'dbo.tbl_AnalysisSummary', 500, 'Perf Stats Collector', 1,500) insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) values ('Loaded Modules_C', 'Loaded Modules', 'Modules loaded in SQL Server address space', 1|2|4|8, 'Common', 'dbo.tbl_dm_os_loaded_modules', 500, 'Perf Stats Collector', 1,2000) + insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) values ('ServerConfiguration_C', 'Server Configuration', 'Common properties such as RAM, CPU, sp_configure, trace flags and startup prameters', 1|2|4|8, 'Common', 'dbo.tbl_ServerProperties', 200, 'SQL Base Collector', 1,2000) + insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) values ('DatabaseConfiguration_C', 'Database Configuration', 'Common properties such as files, auto update stats etc', 1|2|4|8, 'Common', 'dbo.tbl_SysDatabases', 200, 'SQL Base Collector', 1,2000) - --RML insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) -values ('AnalysisSummary_C', 'Best Practice & Analysis Summary', 'Most common things observed from analyzing the data', 1|2|4|8, 'Performance', 'dbo.tbl_AnalysisSummary', 110, 'Perf Stats Collector', 1,3000) +values ('AnalysisSummary_C', 'Best Practice & Analysis Summary', 'Most common things observed from analyzing the data', 1|2|4|8, 'Performance', 'dbo.tbl_AnalysisSummary', 110, 'Perf Stats Collector', 1,3000) insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) values ('ReadTrace_Main', 'ReadTrace Reports', 'ReadTrace reports for Profiler traces or Extended Events/XEvents', 1|2|4|8,'Performance', 'readtrace.tblBatches', 100, 'Profiler Trace', 1,3000) insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq ) values ('Bottleneck Analysis_C', 'Bottleneck Analysis', 'Bottleneck Analysis',2 | 4,'Performance', 'dbo.tbl_REQUESTS', 200, 'Perf Stats Collector', 1,3000) - +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq ) +values ('Bottleneck Analysis_C', 'Bottleneck Analysis', 'Bottleneck Analysis',2 | 4,'Performance', 'dbo.tbl_SCRIPT_ENVIRONMENT_DETAILS', 200, 'Perf Stats Collector', 1,3000) +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq ) +values ('Bottleneck Analysis_C', 'Bottleneck Analysis', 'Bottleneck Analysis',2 | 4,'Performance', 'dbo.tbl_ServerProperties', 200, 'Perf Stats Collector', 1,3000) +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq ) +values ('Bottleneck Analysis_C', 'Bottleneck Analysis', 'Bottleneck Analysis',2 | 4,'Performance', 'dbo.CounterData', 200, 'Perf Stats Collector', 1,3000) +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq ) +values ('Bottleneck Analysis_C', 'Bottleneck Analysis', 'Bottleneck Analysis',2 | 4,'Performance', 'dbo.CounterDetails', 200, 'Perf Stats Collector', 1,3000) insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq ) values ('Blocking and Wait Statistics_C', 'Blocking and Wait Statistics', 'Blocking and wait statistics', 2 | 4, 'Performance', 'dbo.tbl_REQUESTS', 300, 'Perf Stats Collector', 1, 3000) @@ -65,76 +70,106 @@ values ('Blocking and Wait Statistics_C', 'Blocking and Wait Statistics', 'Block insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq ) values ('LockSummary_C', 'Lock Count Summary', 'Lock count graphed by resources', 2 | 4, 'Performance', 'dbo.tbl_locksummary', 4000, 'Perf Stats Collector', 1, 3000) - insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) values ('Spinlock Stats_C', 'Spin Lock Stats', 'Spin Lock Stats', 2 | 4,'Performance', 'dbo.tbl_SPINLOCKSTATS',4000, 'Perf Stats Collector', 1,3000) insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) values ('Query Hash_C', 'Query Hash', 'Top 10 queries from query hash that consume most CPU, IO or logical reads', 4, 'Performance', 'dbo.tbl_TopNLogicalReadsByQueryHash', 4000, 'Perf Stats Collector', 1,3000) +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) +values ('Query Hash_C', 'Query Hash', 'Top 10 queries from query hash that consume most CPU, IO or logical reads', 4, 'Performance', 'dbo.tbl_TopNDurationByQueryHash', 4000, 'Perf Stats Collector', 1,3000) +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) +values ('Query Hash_C', 'Query Hash', 'Top 10 queries from query hash that consume most CPU, IO or logical reads', 4, 'Performance', 'dbo.tbl_TopNCPUByQueryHash', 4000, 'Perf Stats Collector', 1,3000) insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) values ('Missing Indexes_C', 'Missing Indexes', 'Missing Indexes captured by SQL Server DMVs', 2|4|8,'Performance', 'dbo.tbl_missingindexes', 4000, 'Perf Stats Collector', 1,3000) - insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) values ('SQL 2000 Blocking_C', 'SQL Server 2000 blocking', 'SQL Server 2000 blocking', 1, 'Performance', 'dbo.tbl_sysprocesses', 4000, 'SQL 2000 blocking collector', 1,3000) - insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) values ('Perfmon_C', 'Perfmon Summary', 'Summary of most commonly looked at counters', 1|2|4|8, 'Performance', 'dbo.counterdata', 4000, 'Perfmon', 1,3000) +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) +values ('Perfmon_C', 'Perfmon Summary', 'Summary of most commonly looked at counters', 1|2|4|8, 'Performance', 'dbo.counterdetails', 4000, 'Perfmon', 1,3000) insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) values ('Virtual File Stats_C', 'Virtual File Stats', 'Display Virtual File Stats related to IO performance', 1|2|4|8, 'Performance', 'dbo.tbl_FileStats', 4000, 'Perf Stats Collector', 1,3000) - insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) values ('Memory Brokers_C', 'Memory Brokers', 'Display memory brokers', 1|2|4|8, 'Performance', 'dbo.tbl_dm_os_memory_brokers', 4000, 'Perf Stats Collector', 1,3000) +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) +values ('Memory Brokers_C', 'Memory Brokers', 'Display memory brokers', 1|2|4|8, 'Performance', 'dbo.tbl_dm_os_memory_clerks', 4000, 'Perf Stats Collector', 1,3000) insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) values ('SysIndexes_C', 'Indexes and Stats', 'Display Stats info on indexes and stats', 1|2|4|8, 'Performance', 'dbo.tbl_SysIndexes', 4000, 'Perf Stats Collector', 1,3000) - - insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) values ('Query Execution Memory_C', 'Query Execution Memory (Memory Grants)', 'Displays Query Execution Memory', 1|2|4|8, 'Performance', 'dbo.tbl_Query_Execution_Memory', 4000, 'SQL Memory Error Collector', 1,3000) insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) values ('Memory Clerks_C', 'Memory Clerks', 'Displays sys.dm_Os_memory_clerks', 1|2|4|8, 'Performance', 'dbo.tbl_DM_OS_MEMORY_CLERKS', 4000, 'SQL Memory Error Collector', 1,3000) - insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) values ('Working Set Trim_C', 'Workingset Triming', 'Displays Workignset trimming info', 1|2|4|8, 'Performance', 'dbo.tbl_workingset_trimming', 4000, 'SQL Memory Error Colelctor', 1,3000) - insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) values ('TopPlanAnalysis_C', 'Tables used by top queries', 'Tables used by top CPU consuming queries', 1|2|4|8, 'Performance', 'dbo.tblObjectsUsedByTopPlans', 4000, 'Perf Stats Collector', 1,3000) - +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) +values ('TopPlanAnalysis_C', 'Tables used by top queries', 'Tables used by top CPU consuming queries', 1|2|4|8, 'Performance', 'dbo.tbl_Sys_Configurations', 4000, 'Perf Stats Collector', 1,3000) insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) values ('Query_Store_C', 'Query Store Query Analysis', 'Query Store Queries Aggregated at Server level', 1|2|4|8, 'Performance', 'dbo.tbl_query_store_runtime_stats_interval', 4000, 'Query Store Collector', 1,3000) - +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) +values ('Query_Store_C', 'Query Store Query Analysis', 'Query Store Queries Aggregated at Server level', 1|2|4|8, 'Performance', 'dbo.tbl_query_store_runtime_stats', 4000, 'Query Store Collector', 1,3000) +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) +values ('Query_Store_C', 'Query Store Query Analysis', 'Query Store Queries Aggregated at Server level', 1|2|4|8, 'Performance', 'dbo.tbl_query_store_plan', 4000, 'Query Store Collector', 1,3000) +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) +values ('Query_Store_C', 'Query Store Query Analysis', 'Query Store Queries Aggregated at Server level', 1|2|4|8, 'Performance', 'dbo.tbl_query_store_query', 4000, 'Query Store Collector', 1,3000) +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) +values ('Query_Store_C', 'Query Store Query Analysis', 'Query Store Queries Aggregated at Server level', 1|2|4|8, 'Performance', 'dbo.tbl_query_store_query_text', 4000, 'Query Store Collector', 1,3000) insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) values ('Active Queries_C', 'Active CPU Consuming Queries', 'Active CPU Consuming Queries', 1|2|4|8, 'Performance', 'dbo.tbl_Requests', 4000, 'Perf Stats Collector', 1,3000) +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) +values ('Active Queries_C', 'Active CPU Consuming Queries', 'Active CPU Consuming Queries', 1|2|4|8, 'Performance', 'dbo.tbl_NOTABLEACTIVEQUERIES', 4000, 'Perf Stats Collector', 1,3000) insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) values ('System_Requests_C', 'System Thread CPU Consumption', 'System Thread CPU Consumption', 1|2|4|8, 'Performance', 'dbo.tbl_System_Requests', 4000, 'Perf Stats Collector', 1,3000) insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) values ('Active Traces and XEvents_C', 'Active Trace and XEvent Report', 'Active Trace and XEvent report', 1|2|4|8, 'Performance', 'dbo.tbl_profiler_trace_summary', 3000, 'Perf Stats Collector', 1,3000) +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) +values ('Active Traces and XEvents_C', 'Active Trace and XEvent Report', 'Active Trace and XEvent report', 1|2|4|8, 'Performance', 'dbo.tbl_profiler_trace_event_details', 3000, 'Perf Stats Collector', 1,3000) +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) +values ('Active Traces and XEvents_C', 'Active Trace and XEvent Report', 'Active Trace and XEvent report', 1|2|4|8, 'Performance', 'dbo.tbl_XEvents', 3000, 'Perf Stats Collector', 1,3000) insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) values ('Tempdb_Space_Use_C', 'Tempdb Space Usage', 'Breakdown of space usage in tempdb', 1|2|4|8, 'Performance', 'dbo.tbl_dm_db_file_space_usage', 4000, 'Tempdb and Trans Collector', 1,3000) - +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) +values ('Tempdb_Space_Use_C', 'Tempdb Space Usage', 'Breakdown of space usage in tempdb', 1|2|4|8, 'Performance', 'dbo.tbl_dm_db_session_space_usage', 4000, 'Tempdb and Trans Collector', 1,3000) +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) +values ('Tempdb_Space_Use_C', 'Tempdb Space Usage', 'Breakdown of space usage in tempdb', 1|2|4|8, 'Performance', 'dbo.tbl_dm_db_task_space_usage', 4000, 'Tempdb and Trans Collector', 1,3000) --Replication insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) values ('Replication_Topology_C', 'Replication Topology', 'Replication Topology in hierarchycal order', 1|2|4|8, 'Replication', 'dbo.tbl_repl_sysservers', 200, 'Replication', 1,2000) +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) +values ('Replication_Topology_C', 'Replication Topology', 'Replication Topology in hierarchycal order', 1|2|4|8, 'Replication', 'dbo.tbl_repl_mspublications', 200, 'Replication', 1,2000) +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) +values ('Replication_Topology_C', 'Replication Topology', 'Replication Topology in hierarchycal order', 1|2|4|8, 'Replication', 'dbo.tbl_repl_msreplservers', 200, 'Replication', 1,2000) +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) +values ('Replication_Topology_C', 'Replication Topology', 'Replication Topology in hierarchycal order', 1|2|4|8, 'Replication', 'dbo.tbl_repl_msarticles', 200, 'Replication', 1,2000) +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) +values ('Replication_Topology_C', 'Replication Topology', 'Replication Topology in hierarchycal order', 1|2|4|8, 'Replication', 'dbo.tbl_repl_mssubscriptions', 200, 'Replication', 1,2000) +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) +values ('Replication_Topology_C', 'Replication Topology', 'Replication Topology in hierarchycal order', 1|2|4|8, 'Replication', 'dbo.tbl_repl_msmerge_subscriptions', 200, 'Replication', 1,2000) --AG - insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) values ('AlwaysOn_AGBasics_C', 'Always On Configuration Report', 'Always On Configuration Report', 1|2|4|8, 'Always On', 'dbo.tbl_hadr_ag_states', 3000, 'AG Diag Collector', 1,3000) +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) +values ('AlwaysOn_AGBasics_C', 'Always On Configuration Report', 'Always On Configuration Report', 1|2|4|8, 'Always On', 'dbo.tbl_hadr_ag_listeners', 3000, 'AG Diag Collector', 1,3000) +insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) +values ('AlwaysOn_AGBasics_C', 'Always On Configuration Report', 'Always On Configuration Report', 1|2|4|8, 'Always On', 'dbo.tbl_hadr_ag_ip_information', 3000, 'AG Diag Collector', 1,3000) -- Filter drivers insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection,Manditory, CategorySeq) @@ -154,14 +189,17 @@ values ('WASD_ResourceStats_C', 'sys.resource_stats', 'Snapshot from sys.resourc insert into @tbl_reports (ReportName, ReportDisplayName, ReportDescription, VersionApplied, Category, ValidationObject, SeqNo, DataCollection, Manditory,CategorySeq) values ('WASD_SloStats_C', 'SLO change history', 'Shows the changes in service level objective for databases', 1|2|4|8, 'Azure', 'dbo.tbl_SLO_HISTORY', 400, 'Azure Perf Stats Collector', 1,1000) -select -CategorySeq, Category, ReportName, ReportDisplayName, ReportDescription, DataCollection, SeqNo, MAX(ReportAvailable) ReportAvailable -from +--final Select to calc available reports +SELECT +CategorySeq, Category, ReportName, ReportDisplayName, ReportDescription, DataCollection, SeqNo, CASE WHEN (SUM(ReportAvailable) - COUNT(ReportAvailable)) = 0 THEN 1 ELSE 0 END ReportAvailable +FROM ( -select CategorySeq,Category, ReportName, ReportDisplayName, ReportDescription, DataCollection, case when indx.rowcnt >0 then 1 else 0 end ReportAvailable, SeqNo - from @tbl_reports rep left outer join sysindexes indx on ( OBJECT_ID (rep.ValidationObject) = indx.id and indx.indid in (0,1,300)) ) t - group by CategorySeq, Category, ReportName, ReportDisplayName, ReportDescription, DataCollection, SeqNo - order by CategorySeq, SeqNo, ReportName +SELECT CategorySeq,Category, ReportName, ReportDisplayName, ReportDescription, DataCollection, CASE WHEN indx.rowcnt >0 THEN 1 ELSE 0 END ReportAvailable, SeqNo +FROM @tbl_reports rep +LEFT OUTER JOIN sysindexes indx ON ( OBJECT_ID (rep.ValidationObject) = indx.id and indx.indid in (0,1,300)) + ) t +GROUP BY CategorySeq, Category, ReportName, ReportDisplayName, ReportDescription, DataCollection, SeqNo +ORDER BY CategorySeq, SeqNo, ReportName true From df6f4b0824c261a3100d519b870362f5bfc1c1e2 Mon Sep 17 00:00:00 2001 From: hacitandogan Date: Fri, 1 Sep 2023 13:25:25 +0300 Subject: [PATCH 2/7] minor coloring fix on Loaded Modules report some Microsoft modules uses company name "Microsoft Corp." instead of "Microsoft Corporation" , no need to highlight them. Added an additional if condition to the background color field. --- NexusReports/Loaded Modules_C.rdl | 3 ++- NexusReports/NexusReports.rptproj.rsuser | Bin 3195 -> 3431 bytes sqlnexus/Reports/Loaded Modules_C.rdlC | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/NexusReports/Loaded Modules_C.rdl b/NexusReports/Loaded Modules_C.rdl index 41b626a..e88e7b0 100644 --- a/NexusReports/Loaded Modules_C.rdl +++ b/NexusReports/Loaded Modules_C.rdl @@ -386,13 +386,14 @@ END LightGrey - =IIF(Fields!Company.Value="Microsoft Corporation", "No Color", "Yellow") + =IIF(Fields!Company.Value="Microsoft Corporation", "No Color",IIF(Fields!Company.Value="Microsoft Corp.","No Color", "Yellow")) 2pt 2pt 2pt 2pt + true diff --git a/NexusReports/NexusReports.rptproj.rsuser b/NexusReports/NexusReports.rptproj.rsuser index aed240b24e48bfcc6c5e091a0954f5b9d7926d5d..6eebea88d262f0033efcbcba29fc68f719a7e2b0 100644 GIT binary patch delta 1450 zcmZ`%Z)_7~7~fmEE7#Wbs%#$JhPNpU4a!CVhr?{w-cf4XYj@Wcrby{Voyf*y>&A>G zkO;UK74-c=L_krDGZ2URQNTZme$bc^#poB~5QUh<$Oj_`q&~k(=bs>Na=-gM&+mEO z_kDhMSLE}7iK7lSj~{a=?0NpBVbVVDC1{tZ5mBOsrmwZHqfola>atR1GOSyc zoonFz&UzYPuTzu6#Z(|R6G$E~e$LrYE#3>-3RnTfYb$}uI=|Qs+5u1jAs(#!cDYWJ z`3WTCssIeInta#fInw-dcqDwTfvW6x_78`H7poYv>cx!;@E9c7{I z`_p4nZ;Z#Eef!s3tZsS^n~y%Wfd3}Qfu?d%q5I4y>#N_2y#LL6?;i0j*v}U7lT>sk zig<&ofxqeUvqg5x-Q||i%dW5duS7bIT)Via@uaqn-NR42WVVqW`?jexkJnL4p1SI4N$Qk8Gc!Y>Y%NO(3!0=#C zp+!oT6|om}7!+N?qlowccfh>~3F*_q} zA#%$0adZLnWN z@-w7+hTt1uF&K}(?eNQg?khYQij9lk?VH>+=Tio!?ceal1Kyq4&cy!W@zJ|Jn!LbZ zH3XBN@kjyqi|FU6sWx?4qj9u(tnP!|C*EQGyyTJNa164zZT!O%(k1=r)}~z_pZc+e z!3_xNn(XH3ONSpg)+b!9Sz4-Ra0r6;>QnP8Q`NCo>ldz^oOsD(BfP~cFM$t`4}L8l n?D@hK8awY3uI%XD!QcUeEuZbYF!)Qi_ImH3gyZbhv!1^IK^%D? delta 1171 zcmZ`%OH30{6z$_PFfGuB@)^s=0s?ALekw&pozhwd+9`C3P*H2eiU>mZldzDes4*@y zZy`}bz=Q<}MsVS0p%@nG!VnX6;lj9Z!N!FyOjIOz?~|$O4Cyj zB#qsTFq126KH>yPV5O0ljB$#p`MhH<56}>4Zvej7a|m~Z&6vv zG%jqGp=m`ZXO`%6))@Vc$gEgM&9s9_)&NjUjR*w62|%*gj3AM0b`~&)U5%B<2JYlC z8F(K11%5u~8#!)bA7Ui38M(;<4VIRdmj`~tyh*(6+&8iGwIKVc{V*wDMu@kp#3W;W z(sBKf^I}uy!|@9_DP$|}RLDCO@n0_HFO;m-uav*AjUQ|~9@4a9wccecOH45wfLK%j zh?VOq)YYiVxptv;qu$B2irRyE7uPkYYf~TI=2jcW1M_)5RSK*b{f6bHbMBphYahLjNHvtSy) z6vyG|F(3weuqUW>^ma9ciYcEFOfd*RaZFx!9F^ADriKQ3y8|^{Eq%eB5akQN;wFq$ zR;4#fd92Mia zLCd||cAxFm%jDty2dy^ LightGrey - =IIF(Fields!Company.Value="Microsoft Corporation", "No Color", "Yellow") + =IIF(Fields!Company.Value="Microsoft Corporation", "No Color",IIF(Fields!Company.Value="Microsoft Corp.","No Color", "Yellow")) 2pt 2pt 2pt 2pt + true From bc37821ed7e77e01003e6ccb538dec66af715ca5 Mon Sep 17 00:00:00 2001 From: hacitandogan Date: Fri, 1 Sep 2023 14:28:34 +0300 Subject: [PATCH 3/7] #247 Workingset Trimming Report not working Just removed the field "Indicators" Should we add [IndicatorsProcess] ,[IndicatorsSystem] ,[IndicatorsPool] instead ? --- NexusReports/NexusReports.rptproj.rsuser | Bin 3431 -> 3485 bytes NexusReports/Working Set Trim_C.rdl | 3623 +++++++++++----------- sqlnexus/Reports/Working Set Trim_C.rdlC | 3623 +++++++++++----------- 3 files changed, 3684 insertions(+), 3562 deletions(-) diff --git a/NexusReports/NexusReports.rptproj.rsuser b/NexusReports/NexusReports.rptproj.rsuser index 6eebea88d262f0033efcbcba29fc68f719a7e2b0..87ae26bd54bac38434ec5be0843d62a9f32a228e 100644 GIT binary patch delta 1385 zcmZ`%T})eL80MpJ%GXoY0~_T~+F2NsAxvdI%I2m!<(xGK`o}rtr#fjmXb?doAKwuxy(epFv}8uq8G*sV|KF(z1wt4ecxk=Tu75XectDN z-uM09@9S;PJGC2^idi*WF7~r!xLI81vA>W#Ju;S^5q1<66*-?z502#0<3riu^f+)^ zGn3$etwE{miy2*dG~_q6gg;^EkyM9Jg?{OT9!_XRN;ULe%`j1Qld5ziF!p!%Xojwl zS`CY~8YaVv&D&fiy71KVH4E<_er= z55s*lwUCLmTDT8>vCHfctL)M3<~#;2>`F`0F_`b>y0-jj=l3F2-Mn!-mLD5shlv2V&xVw4%bBiT+Y%Os^N14 zXAmU1H0zWv!G`D-CF}kuI}feSrhU>7a{5S_e}9YEFcNzAiz|Pf%ghJ6*7?upZY}Nl zijBayQ}&D&(nibL*WoLF1TRUh!0hTPpRpHV)hRE~)ll_~`IZkF#}mQx-&8HlemwdX zqidlApIyKHxpY^1wY_QS#uvZ28LdnSrLTAN&fSZhm&b&A?t^(Bqidjq^Zv_?rSYn+ vRo~vDw>I817;Q(13*XBZ2EVljU%%}V{$3njWM_&XUM@gGc?Fw?Sh@TU&ns?0 delta 1349 zcmZ`%e`p(Z6z?}lFTLct+-lR@(zK?rYr8qNwOzH^Vs}Ze?UCe?+@*8z$Fj7GHCxwo zY1&2HaIhcjA3^s(hGnZv1ScEY`~`|dtDp$7^$#cbXE$&|1Yt}VTB+~F1cR`^ee&Mt z^Lg*yd)&FkJMOEOOsp9$o4o9GxNd533ooa}Gx^lizU)M5id$DzRb}0uoz6^V=YThF zVh-pwx9$~()KFZ}lY_dtOVN#FfODczlml_hy|Gb6R~2F#kgeC1Xh;pnaW$ePv8Da$NSyh7yQqL+bFT{;wy%NpQpL+`R!Uf~pyDeH8mfG=p;^<1`c<-}(QN zMwHgenjA_Ps$qh0X#_88nKW!s^~-Bu&ioa6ZBgoPcyahN8<62qA7u(w_J)f zkHWO2!RbZAIwN63^+-T5jN&>iFmGw%9H{U<_{^e;qMc%TItjX<9bQN%46!Vzl? zd}>|q-dd{Kd2hkx+|VN*f6&4%e6nO`+h7H~+o`OxSk^`JxVs;PYFocYqFHvzZb35J4D$^}+obFY5;9d@toG%7c{G zk5N93AkvJ~h}#F-1Xp`;S`yPFYGv^y4D5rce9Fkq=El>Vuwe7RZCjlbD>?WK`Sr4Y zKQ)6tY>hBrZ-Q2P<7J0%T%DzA+Lc!4rV$**p-C-Wn4Kw^xkE@+ zjv&%i$j;{oW)Q^ZN)(sJpsw - + + 0 SQL ="data source=" & Parameters!dsServerName.Value & ";initial catalog="&Parameters!dsDatabaseName.Value + Specify a user name and password for data source DataSource_Private: - 3be1e1e6-3541-4e22-ac30-881cbc86bdaf Windows + 3be1e1e6-3541-4e22-ac30-881cbc86bdaf - - - value - System.String - - DataSource_Private IF OBJECT_ID ('DataSet_WaitStats_WaitStatsTop5Categories') IS NOT NULL AND OBJECT_ID ('tbl_SCRIPT_ENVIRONMENT_DETAILS') IS NOT NULL @@ -32,14 +28,14 @@ true - - value System.String + + DataSource_Private IF OBJECT_ID ('DataSet_WaitStats_WaitStatsTop5Categories') IS NOT NULL AND OBJECT_ID ('tbl_SCRIPT_ENVIRONMENT_DETAILS') IS NOT NULL @@ -52,14 +48,14 @@ ELSE true - - - - StartTime - System.DateTime + + value + System.String + + DataSource_Private @@ -89,14 +85,14 @@ ELSE true - - - - EndTime + + StartTime System.DateTime + + DataSource_Private IF OBJECT_ID ('vw_PERF_STATS_SCRIPT_RUNTIMES') IS NOT NULL @@ -116,13 +112,14 @@ ELSE SELECT cast ('1990/1/1' as datetime) AS EndTime true - - - - Runtime + + EndTime + System.DateTime + + DataSource_Private IF OBJECT_ID ('vw_PERF_STATS_SCRIPT_RUNTIMES') IS NOT NULL @@ -133,18 +130,13 @@ ELSE SELECT cast ('1990/1/1' as datetime) AS Runtime true - - - - runtime - true - - - RowNumber - true + + Runtime + + DataSource_Private @@ -158,8 +150,6 @@ begin end true - - runtime @@ -170,6 +160,8 @@ end true + + DataSource_Private @@ -188,22 +180,18 @@ begin end true - - runtime - System.DateTime - - - AvailableMBytes - System.Int32 + true - - SQLCommittedMBytes - System.Int32 + + RowNumber + true + + DataSource_Private if OBJECT_ID ('tbl_workingset_trimming') is not null @@ -214,14 +202,22 @@ order by runtime end true - - - - IsMemStatsAvailable + + runtime + System.DateTime + + + AvailableMBytes + System.Int32 + + + SQLCommittedMBytes System.Int32 + + DataSource_Private IF OBJECT_ID ('tbl_workingset_trimming') IS NOT NULL @@ -230,8 +226,59 @@ ELSE SELECT 0 AS IsMemStatsAvailable true + + + IsMemStatsAvailable + System.Int32 + + + + DataSource_Private + + + =Parameters!RowNumber.Value + + + if OBJECT_ID ('tbl_workingset_trimming') is not null +begin +--declare @rownumber int=7 +declare @runtime datetime +if (@RowNumber is null) +begin + select @runtime = MAX (runtime) from tbl_workingset_trimming +end +else +begin + select @runtime = runtime from (SELECT ROW_NUMBER() OVER (ORDER BY runtime) AS 'RowNumber', runtime from (select distinct runtime from tbl_workingset_trimming) t ) MyRunTime where RowNumber = @RowNumber +end + +select runtime, +[Notification_time] + ,[Notification_type] + ,[MemoryUtilization %] + ,[TotalPhysicalMemory_KB] + ,[AvailablePhysicalMemory_KB] + ,[TotalPageFile_KB] + ,[AvailablePageFile_KB] + ,[TotalVirtualAddressSpace_KB] + ,[AvailableVirtualAddressSpace_KB] + ,[Node Id] + ,[SQL_ReservedMemory_KB] + ,[SQL_CommittedMemory_KB] + ,[Record Id] + ,[Type] + ,[IndicatorsProcess] + ,[IndicatorsSystem] + ,[IndicatorsPool] + ,[Record Time] + ,[Current Time] +from dbo.tbl_workingset_trimming +where runtime = @runtime +end + true + runtime @@ -293,10 +340,6 @@ ELSE Record Id System.String - - Indicators - System.String - Record Time System.String @@ -306,1839 +349,1825 @@ ELSE System.String - - DataSource_Private - if OBJECT_ID ('tbl_workingset_trimming') is not null -begin ---declare @rownumber int=7 -declare @runtime datetime -if (@RowNumber is null) -begin - select @runtime = MAX (runtime) from tbl_workingset_trimming -end -else -begin - select @runtime = runtime from (SELECT ROW_NUMBER() OVER (ORDER BY runtime) AS 'RowNumber', runtime from (select distinct runtime from tbl_workingset_trimming) t ) MyRunTime where RowNumber = @RowNumber -end - -select runtime, -[Notification_time] - ,[Notification_type] - ,[MemoryUtilization %] - ,[TotalPhysicalMemory_KB] - ,[AvailablePhysicalMemory_KB] - ,[TotalPageFile_KB] - ,[AvailablePageFile_KB] - ,[TotalVirtualAddressSpace_KB] - ,[AvailableVirtualAddressSpace_KB] - ,[Node Id] - ,[SQL_ReservedMemory_KB] - ,[SQL_CommittedMemory_KB] - ,[Record Id] - ,[Type] - ,[Indicators] - ,[Record Time] - ,[Current Time] -from dbo.tbl_workingset_trimming -where runtime = @runtime -end - - - - =Parameters!RowNumber.Value - - - true - - - - - true - true - - - - - Working Set Trimming Report - - - - - - - true - true - - - - - No data available. To use this report, the Nexus database needs to have the tbl_workingset_trimming table present in the database. - - - + + + + + + true + true + + + + + Working Set Trimming Report + + + + - - - 0.75in - 0.29875in - 0.39931in - 11.43042in - 1 - - =Sum(Fields!IsMemStatsAvailable.Value, "DataSet_IsMemStatsAvailable")=1 - - NoOutput - - - LemonChiffon - 2pt - 2pt - 1pt - 1pt - - - - true - true - - - - - This report shows aggregations of the RING_BUFFER_RESOURCE_MONITOR ring buffer output captured from the SQL instance. The graph below shows the variation of the SQL working set. The most recent snapshot is shown. This can be changed using the Parameters tab and selecting a different snapshot time. - - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - White - 2pt - 2pt - 2pt - 2pt - - - - - - - - - =Fields!runtime.Value - - - - - - - - - - - - - - - - - - - - - - - =Sum(Fields!AvailableMBytes.Value) - - - - - - - - 0.75pt - - 8pt - - - - - - False - 1 - - False - - 0.75pt - - - NaN - - - False - - 0.75pt - - - NaN - -1 - - - True - - 0.75pt - - - NaN - - - None - - true - true - true - false - - - - - - - - NaN - Opposite - NaN - NaN - - - - - - 0.75pt - - - - - - - True - - True - - 0.75pt - - - NaN - - - False - - 0.75pt - - - NaN - - - True - - 0.75pt - - - NaN - - - None - - true - 0 - true - true - false - - + + + true + true + + + + + No data available. To use this report, the Nexus database needs to have the tbl_workingset_trimming table present in the database. + + + - - - - - NaN - Opposite - NaN - NaN - - - - Perspective - 0 - 25 - Simple - 0 - + + + 0.75in + 0.29875in + 0.39931in + 11.43042in + 1 + + =Sum(Fields!IsMemStatsAvailable.Value, "DataSet_IsMemStatsAvailable")=1 + + NoOutput - 0.75pt - LightGrey + LemonChiffon + 2pt + 2pt + 1pt + 1pt - - - - + + + true + true + + + + + This report shows aggregations of the RING_BUFFER_RESOURCE_MONITOR ring buffer output captured from the SQL instance. The graph below shows the variation of the SQL working set. The most recent snapshot is shown. This can be changed using the Parameters tab and selecting a different snapshot time. + - 0.75pt - 9pt + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + White + 2pt + 2pt + 2pt + 2pt - BottomCenter - - - - - true - - - Excel - - - - - No Data Available - - - DataSet_Graph - 1.68069in - 0.29875in - 4.28473in - 11.43042in - 3 - - - __Upgraded2005__ - __Upgraded2005__ - - - - - White - - - - - - - 1.46514in - - - 1.48958in - - - 2.70139in - - - 0.70152in - - - 0.98611in - - - 1.02417in - - - 1.18749in - - - 1.09375in - - - 0.78126in - - - - - 0.86458in - - - - - true - true - - - - - Runtime - - - - + 5pt - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - SteelBlue - 2pt - 2pt - 2pt - 2pt - - - - - - - true - true - - - - - Notification time - - - - + 5pt - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - SteelBlue - 2pt - 2pt - 2pt - 2pt - - - - - - - true - true - - - - - Notification Type - - - - + 0.75pt + + 8pt + + + + + + False + 1 + + False + 0.75pt - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - SteelBlue - 2pt - 2pt - 2pt - 2pt - - - - - - - true - true - - - - - Memory Utilization % - - - - - - - Textbox17 + NaN + + + False + 0.75pt - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - SteelBlue - 2pt - 2pt - 2pt - 2pt - - - - - - - true - - =Fields!AvailablePhysicalMemory_KB.Value - - true - - - - - Available MBytes (MB) - - - - - - - Textbox23 + NaN + -1 + + + True + 0.75pt - SteelBlue - 2pt - 2pt - 2pt - 2pt - - - - - - - true - - =Fields!AvailablePageFile_KB.Value - - true - - - - - Available Paging File (MB) - - - - - - - Textbox21 + NaN + + + None + + NaN + NaN + true + true + true + false + + + + + + + NaN + Opposite + NaN + NaN + + + 0.75pt + + + + + + + True + + True + 0.75pt - SteelBlue - 2pt - 2pt - 2pt - 2pt - - - - - - - true - true - - - - - SQL Reserved Memory (MB) - - - - - - - Textbox19 + NaN + + + False + 0.75pt - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - SteelBlue - 2pt - 2pt - 2pt - 2pt - - - - - - - true - - =Fields!SQL_CommittedMemory_KB.Value - - true - - - - - SQL Committed Memory (MB) - - - - - - - Textbox25 + NaN + + + True + 0.75pt - SteelBlue - 2pt - 2pt - 2pt - 2pt - - - - - - - true - true - - - - - Node ID + NaN + + + None + + true + 0 + true + true + false + + + + + + + NaN + Opposite + NaN + NaN + + + 0.75pt + + LightGrey + + + + + + + 0.75pt + + 9pt + + BottomCenter + + + + + true + + + Excel + + + + + No Data Available + + + DataSet_Graph + 1.68069in + 0.29875in + 4.28473in + 11.43042in + 3 + + + __Upgraded2005__ + __Upgraded2005__ + + + + + White + + + + + + + 1.46514in + + + 1.48958in + + + 2.70139in + + + 0.70152in + + + 0.98611in + + + 1.02417in + + + 1.18749in + + + 1.09375in + + + 0.78126in + + + + + 0.86458in + + + + + true + true + + + + + Runtime + + + + + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + SteelBlue + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Notification time + + + + + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + SteelBlue + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Notification Type + + + + + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + SteelBlue + 2pt + 2pt + 2pt + 2pt + + + true + + + + + + true + true + + + + + Memory Utilization % + + + - - + + + Textbox17 + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + SteelBlue + 2pt + 2pt + 2pt + 2pt - - - - - + + + + + + + true + + =Fields!AvailablePhysicalMemory_KB.Value + + true + + + + + Available MBytes (MB) + + + - - + + + Textbox23 + + SteelBlue + 2pt + 2pt + 2pt + 2pt - - - Textbox28 - - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - SteelBlue - 2pt - 2pt - 2pt - 2pt - - - - - - - - 0.25in - - - - - true - true - - - - - =Fields!runtime.Value + + + + + + + true + + =Fields!AvailablePageFile_KB.Value + + true + + + + + Available Paging File (MB) + + + - - + + + Textbox21 + + SteelBlue + 2pt + 2pt + 2pt + 2pt - - - runtime - - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - 2pt - 2pt - 2pt - 2pt - - - - - - - - true - true - - - - - =Fields!Notification_time.Value + + + + + + + true + true + + + + + SQL Reserved Memory (MB) + + + - - + + + Textbox19 + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + SteelBlue + 2pt + 2pt + 2pt + 2pt - - - Notification_time - - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - 2pt - 2pt - 2pt - 2pt - - - - - - - - true - true - - - - - =Fields!type.Value + + + + + + + true + + =Fields!SQL_CommittedMemory_KB.Value + + true + + + + + SQL Committed Memory (MB) + + + - - + + + Textbox25 + + SteelBlue + 2pt + 2pt + 2pt + 2pt - - - type - - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - 2pt - 2pt - 2pt - 2pt - - - - - - - - true - true - - - - - =Fields!MemoryUtilization__.Value + + + + + + + true + true + + + + + Node ID + + + + + + + + + + + + - - + + + Textbox28 + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + SteelBlue + 2pt + 2pt + 2pt + 2pt - - - MemoryUtilization__ - - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - 2pt - 2pt - 2pt - 2pt - - - - - - - - true - true - - - - - =Fields!AvailablePhysicalMemory_KB.Value/1024 + + + + + + + 0.25in + + + + + true + true + + + + + =Fields!runtime.Value + + + - - + + + runtime + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + 2pt + 2pt + 2pt + 2pt - - - TotalPhysicalMemory_KB - - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - 2pt - 2pt - 2pt - 2pt - - - - - - - - true - true - - - - - =Fields!AvailablePageFile_KB.Value/1024 + + + + + + + true + true + + + + + =Fields!Notification_time.Value + + + - - + + + Notification_time + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + 2pt + 2pt + 2pt + 2pt - - - AvailablePageFile_KB - - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - 2pt - 2pt - 2pt - 2pt - - - - - - - - true - true - - - - - =Fields!SQL_ReservedMemory_KB.Value/1024 + + + + + + + true + true + + + + + =Fields!type.Value + + + - - + + + type + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + 2pt + 2pt + 2pt + 2pt - - - SQL_ReservedMemory_KB - - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - 2pt - 2pt - 2pt - 2pt - - - - - - - - true - true - - - - - =Fields!SQL_CommittedMemory_KB.Value/1024 + + + + + + + true + true + + + + + =Fields!MemoryUtilization__.Value + + + - - + + + MemoryUtilization__ + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + 2pt + 2pt + 2pt + 2pt - - - SQL_CommittedMemory_KB - - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - 2pt - 2pt - 2pt - 2pt - - - - - - - - true - true - - - - - =Fields!Node_Id.Value + + + + + + + true + true + + + + + =Fields!AvailablePhysicalMemory_KB.Value/1024 + + + - - + + + TotalPhysicalMemory_KB + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + 2pt + 2pt + 2pt + 2pt - - - Node_Id - - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - 2pt - 2pt - 2pt - 2pt - - - - - - - - - - - - - - - - - - - - - - - - - After - - - - - - - true - DataSet_MemClerks - 6.00709in - 0.29875in - 1.11458in - 11.43042in - 4 - - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - - - - true - true - - - - - Server - - - + + + + + + + true + true + + + + + =Fields!AvailablePageFile_KB.Value/1024 + + + + + + + AvailablePageFile_KB + + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!SQL_ReservedMemory_KB.Value/1024 + + + + + + + SQL_ReservedMemory_KB + + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!SQL_CommittedMemory_KB.Value/1024 + + + + + + + SQL_CommittedMemory_KB + + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!Node_Id.Value + + + + + + + Node_Id + + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + + + + + + + + + + + + + + + After + + + + + + + true + DataSet_MemClerks + 6.00709in + 0.29875in + 1.11458in + 11.43041in + 4 + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + - - - 0.125in - 7.25in - 0.25in - 1in - 5 - - - =Parameters!FmtChartBackground.Value - Middle - 2pt - 2pt - 1pt - 1pt - - - - true - true - - - - - =First(Fields!value.Value, "DataSet_Shared_SQLServerName") + + + true + true + + + + + Server + + + - - - - - White - Middle - 2pt - 2pt - 1pt - 1pt - - - - true - true - - - - - Version (SP) - - - + + + 0.125in + 7.25in + 0.25in + 1in + 5 + + =Parameters!FmtChartBackground.Value + Middle + 2pt + 2pt + 1pt + 1pt - - - 0.375in - 7.25in - 0.25in - 1in - 7 - - - =Parameters!FmtChartBackground.Value - Middle - 2pt - 2pt - 1pt - 1pt - - - - true - true - - - - - =First(Fields!value.Value, "DataSet_Shared_SQLVersion") - - - - - - White - Middle - 2pt - 2pt - 1pt - 1pt - - - - true - true - - - - - End Time - - - + + + true + true + + + + + =First(Fields!value.Value, "DataSet_Shared_SQLServerName") + + + + + + White + Middle + 2pt + 2pt + 1pt + 1pt - - - 0.375in - 9.3507in - 0.25in - 1in - 9 - - - =Parameters!FmtChartBackground.Value - Middle - 2pt - 2pt - 1pt - 1pt - - - - true - true - - - - - Start Time + + + true + true + + + + + Version (SP) + + + - - + + + 0.375in + 7.25in + 0.25in + 1in + 7 + + =Parameters!FmtChartBackground.Value + Middle + 2pt + 2pt + 1pt + 1pt - - - 0.125in - 9.36459in - 0.25in - 1in - 10 - - - =Parameters!FmtChartBackground.Value - Middle - 2pt - 2pt - 1pt - 1pt - - - - true - true - - - - - =Parameters!StartTime.Value + + + true + true + + + + + =First(Fields!value.Value, "DataSet_Shared_SQLVersion") + + + + + + White + Middle + 2pt + 2pt + 1pt + 1pt + + + + true + true + + + + + End Time + + + - - - - - White - Middle - 2pt - 2pt - 1pt - 1pt - - - - true - true - - - - - =Parameters!EndTime.Value + + + 0.375in + 9.3507in + 0.25in + 1in + 9 + + + =Parameters!FmtChartBackground.Value + Middle + 2pt + 2pt + 1pt + 1pt + + + + true + true + + + + + Start Time + + + - - - + + =Parameters!FmtChartBackground.Value + Middle + 2pt + 2pt + 1pt + 1pt + + + + true + true + + + + + =Parameters!StartTime.Value + + + + + + White + Middle + 2pt + 2pt + 1pt + 1pt + + + + true + true + + + + + =Parameters!EndTime.Value + + + + + + White + Middle + 2pt + 2pt + 1pt + 1pt + + + + 7.30208in + - - White - Middle - 2pt - 2pt - 1pt - 1pt + =Parameters!FmtAmbientBackground.Value - - - 7.30208in - - + + + 6 + 2 + + + 0 + 0 + dsServerName + + + 1 + 0 + dsDatabaseName + + + 2 + 0 + StartTime + + + 3 + 0 + EndTime + + + 4 + 0 + FmtChartBackground + + + 5 + 0 + FmtAmbientBackground + + + 0 + 1 + RowNumber + + + + en-US true - d307f978-9c11-4047-a5fd-f12c22be445c Inch + d307f978-9c11-4047-a5fd-f12c22be445c \ No newline at end of file diff --git a/sqlnexus/Reports/Working Set Trim_C.rdlC b/sqlnexus/Reports/Working Set Trim_C.rdlC index 6a69c20..72c25f1 100644 --- a/sqlnexus/Reports/Working Set Trim_C.rdlC +++ b/sqlnexus/Reports/Working Set Trim_C.rdlC @@ -1,23 +1,19 @@  - + + 0 SQL ="data source=" & Parameters!dsServerName.Value & ";initial catalog="&Parameters!dsDatabaseName.Value + Specify a user name and password for data source DataSource_Private: - 3be1e1e6-3541-4e22-ac30-881cbc86bdaf Windows + 3be1e1e6-3541-4e22-ac30-881cbc86bdaf - - - value - System.String - - DataSource_Private IF OBJECT_ID ('DataSet_WaitStats_WaitStatsTop5Categories') IS NOT NULL AND OBJECT_ID ('tbl_SCRIPT_ENVIRONMENT_DETAILS') IS NOT NULL @@ -32,14 +28,14 @@ true - - value System.String + + DataSource_Private IF OBJECT_ID ('DataSet_WaitStats_WaitStatsTop5Categories') IS NOT NULL AND OBJECT_ID ('tbl_SCRIPT_ENVIRONMENT_DETAILS') IS NOT NULL @@ -52,14 +48,14 @@ ELSE true - - - - StartTime - System.DateTime + + value + System.String + + DataSource_Private @@ -89,14 +85,14 @@ ELSE true - - - - EndTime + + StartTime System.DateTime + + DataSource_Private IF OBJECT_ID ('vw_PERF_STATS_SCRIPT_RUNTIMES') IS NOT NULL @@ -116,13 +112,14 @@ ELSE SELECT cast ('1990/1/1' as datetime) AS EndTime true - - - - Runtime + + EndTime + System.DateTime + + DataSource_Private IF OBJECT_ID ('vw_PERF_STATS_SCRIPT_RUNTIMES') IS NOT NULL @@ -133,18 +130,13 @@ ELSE SELECT cast ('1990/1/1' as datetime) AS Runtime true - - - - runtime - true - - - RowNumber - true + + Runtime + + DataSource_Private @@ -158,8 +150,6 @@ begin end true - - runtime @@ -170,6 +160,8 @@ end true + + DataSource_Private @@ -188,22 +180,18 @@ begin end true - - runtime - System.DateTime - - - AvailableMBytes - System.Int32 + true - - SQLCommittedMBytes - System.Int32 + + RowNumber + true + + DataSource_Private if OBJECT_ID ('tbl_workingset_trimming') is not null @@ -214,14 +202,22 @@ order by runtime end true - - - - IsMemStatsAvailable + + runtime + System.DateTime + + + AvailableMBytes + System.Int32 + + + SQLCommittedMBytes System.Int32 + + DataSource_Private IF OBJECT_ID ('tbl_workingset_trimming') IS NOT NULL @@ -230,8 +226,59 @@ ELSE SELECT 0 AS IsMemStatsAvailable true + + + IsMemStatsAvailable + System.Int32 + + + + DataSource_Private + + + =Parameters!RowNumber.Value + + + if OBJECT_ID ('tbl_workingset_trimming') is not null +begin +--declare @rownumber int=7 +declare @runtime datetime +if (@RowNumber is null) +begin + select @runtime = MAX (runtime) from tbl_workingset_trimming +end +else +begin + select @runtime = runtime from (SELECT ROW_NUMBER() OVER (ORDER BY runtime) AS 'RowNumber', runtime from (select distinct runtime from tbl_workingset_trimming) t ) MyRunTime where RowNumber = @RowNumber +end + +select runtime, +[Notification_time] + ,[Notification_type] + ,[MemoryUtilization %] + ,[TotalPhysicalMemory_KB] + ,[AvailablePhysicalMemory_KB] + ,[TotalPageFile_KB] + ,[AvailablePageFile_KB] + ,[TotalVirtualAddressSpace_KB] + ,[AvailableVirtualAddressSpace_KB] + ,[Node Id] + ,[SQL_ReservedMemory_KB] + ,[SQL_CommittedMemory_KB] + ,[Record Id] + ,[Type] + ,[IndicatorsProcess] + ,[IndicatorsSystem] + ,[IndicatorsPool] + ,[Record Time] + ,[Current Time] +from dbo.tbl_workingset_trimming +where runtime = @runtime +end + true + runtime @@ -293,10 +340,6 @@ ELSE Record Id System.String - - Indicators - System.String - Record Time System.String @@ -306,1839 +349,1825 @@ ELSE System.String - - DataSource_Private - if OBJECT_ID ('tbl_workingset_trimming') is not null -begin ---declare @rownumber int=7 -declare @runtime datetime -if (@RowNumber is null) -begin - select @runtime = MAX (runtime) from tbl_workingset_trimming -end -else -begin - select @runtime = runtime from (SELECT ROW_NUMBER() OVER (ORDER BY runtime) AS 'RowNumber', runtime from (select distinct runtime from tbl_workingset_trimming) t ) MyRunTime where RowNumber = @RowNumber -end - -select runtime, -[Notification_time] - ,[Notification_type] - ,[MemoryUtilization %] - ,[TotalPhysicalMemory_KB] - ,[AvailablePhysicalMemory_KB] - ,[TotalPageFile_KB] - ,[AvailablePageFile_KB] - ,[TotalVirtualAddressSpace_KB] - ,[AvailableVirtualAddressSpace_KB] - ,[Node Id] - ,[SQL_ReservedMemory_KB] - ,[SQL_CommittedMemory_KB] - ,[Record Id] - ,[Type] - ,[Indicators] - ,[Record Time] - ,[Current Time] -from dbo.tbl_workingset_trimming -where runtime = @runtime -end - - - - =Parameters!RowNumber.Value - - - true - - - - - true - true - - - - - Working Set Trimming Report - - - - - - - true - true - - - - - No data available. To use this report, the Nexus database needs to have the tbl_workingset_trimming table present in the database. - - - + + + + + + true + true + + + + + Working Set Trimming Report + + + + - - - 0.75in - 0.29875in - 0.39931in - 11.43042in - 1 - - =Sum(Fields!IsMemStatsAvailable.Value, "DataSet_IsMemStatsAvailable")=1 - - NoOutput - - - LemonChiffon - 2pt - 2pt - 1pt - 1pt - - - - true - true - - - - - This report shows aggregations of the RING_BUFFER_RESOURCE_MONITOR ring buffer output captured from the SQL instance. The graph below shows the variation of the SQL working set. The most recent snapshot is shown. This can be changed using the Parameters tab and selecting a different snapshot time. - - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - White - 2pt - 2pt - 2pt - 2pt - - - - - - - - - =Fields!runtime.Value - - - - - - - - - - - - - - - - - - - - - - - =Sum(Fields!AvailableMBytes.Value) - - - - - - - - 0.75pt - - 8pt - - - - - - False - 1 - - False - - 0.75pt - - - NaN - - - False - - 0.75pt - - - NaN - -1 - - - True - - 0.75pt - - - NaN - - - None - - true - true - true - false - - - - - - - - NaN - Opposite - NaN - NaN - - - - - - 0.75pt - - - - - - - True - - True - - 0.75pt - - - NaN - - - False - - 0.75pt - - - NaN - - - True - - 0.75pt - - - NaN - - - None - - true - 0 - true - true - false - - + + + true + true + + + + + No data available. To use this report, the Nexus database needs to have the tbl_workingset_trimming table present in the database. + + + - - - - - NaN - Opposite - NaN - NaN - - - - Perspective - 0 - 25 - Simple - 0 - + + + 0.75in + 0.29875in + 0.39931in + 11.43042in + 1 + + =Sum(Fields!IsMemStatsAvailable.Value, "DataSet_IsMemStatsAvailable")=1 + + NoOutput - 0.75pt - LightGrey + LemonChiffon + 2pt + 2pt + 1pt + 1pt - - - - + + + true + true + + + + + This report shows aggregations of the RING_BUFFER_RESOURCE_MONITOR ring buffer output captured from the SQL instance. The graph below shows the variation of the SQL working set. The most recent snapshot is shown. This can be changed using the Parameters tab and selecting a different snapshot time. + - 0.75pt - 9pt + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + White + 2pt + 2pt + 2pt + 2pt - BottomCenter - - - - - true - - - Excel - - - - - No Data Available - - - DataSet_Graph - 1.68069in - 0.29875in - 4.28473in - 11.43042in - 3 - - - __Upgraded2005__ - __Upgraded2005__ - - - - - White - - - - - - - 1.46514in - - - 1.48958in - - - 2.70139in - - - 0.70152in - - - 0.98611in - - - 1.02417in - - - 1.18749in - - - 1.09375in - - - 0.78126in - - - - - 0.86458in - - - - - true - true - - - - - Runtime - - - - + 5pt - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - SteelBlue - 2pt - 2pt - 2pt - 2pt - - - - - - - true - true - - - - - Notification time - - - - + 5pt - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - SteelBlue - 2pt - 2pt - 2pt - 2pt - - - - - - - true - true - - - - - Notification Type - - - - + 0.75pt + + 8pt + + + + + + False + 1 + + False + 0.75pt - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - SteelBlue - 2pt - 2pt - 2pt - 2pt - - - - - - - true - true - - - - - Memory Utilization % - - - - - - - Textbox17 + NaN + + + False + 0.75pt - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - SteelBlue - 2pt - 2pt - 2pt - 2pt - - - - - - - true - - =Fields!AvailablePhysicalMemory_KB.Value - - true - - - - - Available MBytes (MB) - - - - - - - Textbox23 + NaN + -1 + + + True + 0.75pt - SteelBlue - 2pt - 2pt - 2pt - 2pt - - - - - - - true - - =Fields!AvailablePageFile_KB.Value - - true - - - - - Available Paging File (MB) - - - - - - - Textbox21 + NaN + + + None + + NaN + NaN + true + true + true + false + + + + + + + NaN + Opposite + NaN + NaN + + + 0.75pt + + + + + + + True + + True + 0.75pt - SteelBlue - 2pt - 2pt - 2pt - 2pt - - - - - - - true - true - - - - - SQL Reserved Memory (MB) - - - - - - - Textbox19 + NaN + + + False + 0.75pt - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - SteelBlue - 2pt - 2pt - 2pt - 2pt - - - - - - - true - - =Fields!SQL_CommittedMemory_KB.Value - - true - - - - - SQL Committed Memory (MB) - - - - - - - Textbox25 + NaN + + + True + 0.75pt - SteelBlue - 2pt - 2pt - 2pt - 2pt - - - - - - - true - true - - - - - Node ID + NaN + + + None + + true + 0 + true + true + false + + + + + + + NaN + Opposite + NaN + NaN + + + 0.75pt + + LightGrey + + + + + + + 0.75pt + + 9pt + + BottomCenter + + + + + true + + + Excel + + + + + No Data Available + + + DataSet_Graph + 1.68069in + 0.29875in + 4.28473in + 11.43042in + 3 + + + __Upgraded2005__ + __Upgraded2005__ + + + + + White + + + + + + + 1.46514in + + + 1.48958in + + + 2.70139in + + + 0.70152in + + + 0.98611in + + + 1.02417in + + + 1.18749in + + + 1.09375in + + + 0.78126in + + + + + 0.86458in + + + + + true + true + + + + + Runtime + + + + + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + SteelBlue + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Notification time + + + + + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + SteelBlue + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Notification Type + + + + + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + SteelBlue + 2pt + 2pt + 2pt + 2pt + + + true + + + + + + true + true + + + + + Memory Utilization % + + + - - + + + Textbox17 + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + SteelBlue + 2pt + 2pt + 2pt + 2pt - - - - - + + + + + + + true + + =Fields!AvailablePhysicalMemory_KB.Value + + true + + + + + Available MBytes (MB) + + + - - + + + Textbox23 + + SteelBlue + 2pt + 2pt + 2pt + 2pt - - - Textbox28 - - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - SteelBlue - 2pt - 2pt - 2pt - 2pt - - - - - - - - 0.25in - - - - - true - true - - - - - =Fields!runtime.Value + + + + + + + true + + =Fields!AvailablePageFile_KB.Value + + true + + + + + Available Paging File (MB) + + + - - + + + Textbox21 + + SteelBlue + 2pt + 2pt + 2pt + 2pt - - - runtime - - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - 2pt - 2pt - 2pt - 2pt - - - - - - - - true - true - - - - - =Fields!Notification_time.Value + + + + + + + true + true + + + + + SQL Reserved Memory (MB) + + + - - + + + Textbox19 + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + SteelBlue + 2pt + 2pt + 2pt + 2pt - - - Notification_time - - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - 2pt - 2pt - 2pt - 2pt - - - - - - - - true - true - - - - - =Fields!type.Value + + + + + + + true + + =Fields!SQL_CommittedMemory_KB.Value + + true + + + + + SQL Committed Memory (MB) + + + - - + + + Textbox25 + + SteelBlue + 2pt + 2pt + 2pt + 2pt - - - type - - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - 2pt - 2pt - 2pt - 2pt - - - - - - - - true - true - - - - - =Fields!MemoryUtilization__.Value + + + + + + + true + true + + + + + Node ID + + + + + + + + + + + + - - + + + Textbox28 + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + SteelBlue + 2pt + 2pt + 2pt + 2pt - - - MemoryUtilization__ - - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - 2pt - 2pt - 2pt - 2pt - - - - - - - - true - true - - - - - =Fields!AvailablePhysicalMemory_KB.Value/1024 + + + + + + + 0.25in + + + + + true + true + + + + + =Fields!runtime.Value + + + - - + + + runtime + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + 2pt + 2pt + 2pt + 2pt - - - TotalPhysicalMemory_KB - - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - 2pt - 2pt - 2pt - 2pt - - - - - - - - true - true - - - - - =Fields!AvailablePageFile_KB.Value/1024 + + + + + + + true + true + + + + + =Fields!Notification_time.Value + + + - - + + + Notification_time + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + 2pt + 2pt + 2pt + 2pt - - - AvailablePageFile_KB - - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - 2pt - 2pt - 2pt - 2pt - - - - - - - - true - true - - - - - =Fields!SQL_ReservedMemory_KB.Value/1024 + + + + + + + true + true + + + + + =Fields!type.Value + + + - - + + + type + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + 2pt + 2pt + 2pt + 2pt - - - SQL_ReservedMemory_KB - - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - 2pt - 2pt - 2pt - 2pt - - - - - - - - true - true - - - - - =Fields!SQL_CommittedMemory_KB.Value/1024 + + + + + + + true + true + + + + + =Fields!MemoryUtilization__.Value + + + - - + + + MemoryUtilization__ + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + 2pt + 2pt + 2pt + 2pt - - - SQL_CommittedMemory_KB - - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - 2pt - 2pt - 2pt - 2pt - - - - - - - - true - true - - - - - =Fields!Node_Id.Value + + + + + + + true + true + + + + + =Fields!AvailablePhysicalMemory_KB.Value/1024 + + + - - + + + TotalPhysicalMemory_KB + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + 2pt + 2pt + 2pt + 2pt - - - Node_Id - - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - 2pt - 2pt - 2pt - 2pt - - - - - - - - - - - - - - - - - - - - - - - - - After - - - - - - - true - DataSet_MemClerks - 6.00709in - 0.29875in - 1.11458in - 11.43042in - 4 - - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - - Silver - - 1pt - - - - - true - true - - - - - Server - - - + + + + + + + true + true + + + + + =Fields!AvailablePageFile_KB.Value/1024 + + + + + + + AvailablePageFile_KB + + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!SQL_ReservedMemory_KB.Value/1024 + + + + + + + SQL_ReservedMemory_KB + + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!SQL_CommittedMemory_KB.Value/1024 + + + + + + + SQL_CommittedMemory_KB + + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!Node_Id.Value + + + + + + + Node_Id + + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + + + + + + + + + + + + + + + After + + + + + + + true + DataSet_MemClerks + 6.00709in + 0.29875in + 1.11458in + 11.43041in + 4 + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + - - - 0.125in - 7.25in - 0.25in - 1in - 5 - - - =Parameters!FmtChartBackground.Value - Middle - 2pt - 2pt - 1pt - 1pt - - - - true - true - - - - - =First(Fields!value.Value, "DataSet_Shared_SQLServerName") + + + true + true + + + + + Server + + + - - - - - White - Middle - 2pt - 2pt - 1pt - 1pt - - - - true - true - - - - - Version (SP) - - - + + + 0.125in + 7.25in + 0.25in + 1in + 5 + + =Parameters!FmtChartBackground.Value + Middle + 2pt + 2pt + 1pt + 1pt - - - 0.375in - 7.25in - 0.25in - 1in - 7 - - - =Parameters!FmtChartBackground.Value - Middle - 2pt - 2pt - 1pt - 1pt - - - - true - true - - - - - =First(Fields!value.Value, "DataSet_Shared_SQLVersion") - - - - - - White - Middle - 2pt - 2pt - 1pt - 1pt - - - - true - true - - - - - End Time - - - + + + true + true + + + + + =First(Fields!value.Value, "DataSet_Shared_SQLServerName") + + + + + + White + Middle + 2pt + 2pt + 1pt + 1pt - - - 0.375in - 9.3507in - 0.25in - 1in - 9 - - - =Parameters!FmtChartBackground.Value - Middle - 2pt - 2pt - 1pt - 1pt - - - - true - true - - - - - Start Time + + + true + true + + + + + Version (SP) + + + - - + + + 0.375in + 7.25in + 0.25in + 1in + 7 + + =Parameters!FmtChartBackground.Value + Middle + 2pt + 2pt + 1pt + 1pt - - - 0.125in - 9.36459in - 0.25in - 1in - 10 - - - =Parameters!FmtChartBackground.Value - Middle - 2pt - 2pt - 1pt - 1pt - - - - true - true - - - - - =Parameters!StartTime.Value + + + true + true + + + + + =First(Fields!value.Value, "DataSet_Shared_SQLVersion") + + + + + + White + Middle + 2pt + 2pt + 1pt + 1pt + + + + true + true + + + + + End Time + + + - - - - - White - Middle - 2pt - 2pt - 1pt - 1pt - - - - true - true - - - - - =Parameters!EndTime.Value + + + 0.375in + 9.3507in + 0.25in + 1in + 9 + + + =Parameters!FmtChartBackground.Value + Middle + 2pt + 2pt + 1pt + 1pt + + + + true + true + + + + + Start Time + + + - - - + + =Parameters!FmtChartBackground.Value + Middle + 2pt + 2pt + 1pt + 1pt + + + + true + true + + + + + =Parameters!StartTime.Value + + + + + + White + Middle + 2pt + 2pt + 1pt + 1pt + + + + true + true + + + + + =Parameters!EndTime.Value + + + + + + White + Middle + 2pt + 2pt + 1pt + 1pt + + + + 7.30208in + - - White - Middle - 2pt - 2pt - 1pt - 1pt + =Parameters!FmtAmbientBackground.Value - - - 7.30208in - - + + + 6 + 2 + + + 0 + 0 + dsServerName + + + 1 + 0 + dsDatabaseName + + + 2 + 0 + StartTime + + + 3 + 0 + EndTime + + + 4 + 0 + FmtChartBackground + + + 5 + 0 + FmtAmbientBackground + + + 0 + 1 + RowNumber + + + + en-US true - d307f978-9c11-4047-a5fd-f12c22be445c Inch + d307f978-9c11-4047-a5fd-f12c22be445c \ No newline at end of file From 5fd5c2dcee7315a745df3626445291c88e4ea286 Mon Sep 17 00:00:00 2001 From: hacitandogan Date: Tue, 5 Sep 2023 09:09:13 +0300 Subject: [PATCH 4/7] #247 added missing fields. Added [IndicatorsProcess] ,[IndicatorsSystem] ,[IndicatorsPool] as part of discussion under #247. --- NexusReports/NexusReports.rptproj.rsuser | Bin 3485 -> 3485 bytes NexusReports/Working Set Trim_C.rdl | 363 ++++++++++++++++++++++- sqlnexus/Reports/Working Set Trim_C.rdlC | 363 ++++++++++++++++++++++- 3 files changed, 720 insertions(+), 6 deletions(-) diff --git a/NexusReports/NexusReports.rptproj.rsuser b/NexusReports/NexusReports.rptproj.rsuser index 87ae26bd54bac38434ec5be0843d62a9f32a228e..abd12d048ad31d6f87905eccf6dbfe3b174ef007 100644 GIT binary patch delta 154 zcmbO$Jy&|e8YV{3$!nPu7$;9Y$D}C5laZL5S(2ESlAoTK$HvFNz`&lBUyzxTU$&W( zS)P5eCl~i*V=l4DSzO$kL%60gPB!8Z7G*03s^fP_EJ+N`FD*(=jW0MJF?|93LqE|^Si__=(GClh9h#LT~ Cg*VLr delta 149 zcmbO$Jy&|e8YV{Z$!nPu7$;6X$D}C5o|RvanUi0}#>c?Gz>|@foLQ2Xmy(~Jn75ge zS)P4z78mzqV=ghqvdvyx^BINsT@p(YgY!#^l2hYLQj1I2$|vjdh;J6+@nD=>%qwVA y2{h&J|Ns9la@pRtTyE~MUh%d}!1{fk8LOcZdB{Wp{V diff --git a/NexusReports/Working Set Trim_C.rdl b/NexusReports/Working Set Trim_C.rdl index 72c25f1..c7fe9af 100644 --- a/NexusReports/Working Set Trim_C.rdl +++ b/NexusReports/Working Set Trim_C.rdl @@ -348,6 +348,18 @@ end Current Time System.String + + IndicatorsProcess + true + + + IndicatorsSystem + true + + + IndicatorsPool + true + @@ -837,6 +849,15 @@ end 0.78126in + + 1in + + + 1in + + + 1in + @@ -1005,7 +1026,6 @@ end 2pt - true @@ -1314,6 +1334,178 @@ end + + + + true + true + + + + + Indicators Process + + + + + + + Textbox1 + + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + SteelBlue + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Indicators System + + + + + + + Textbox4 + + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + SteelBlue + 2pt + 2pt + 2pt + 2pt + + + true + + + + + + true + true + + + + + Indicators Pool + + + + + + + Textbox6 + + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + SteelBlue + 2pt + 2pt + 2pt + 2pt + + + + @@ -1806,6 +1998,168 @@ end + + + + true + true + + + + + =Fields!IndicatorsProcess.Value + + + + + + + IndicatorsProcess + + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!IndicatorsSystem.Value + + + + + + + IndicatorsSystem + + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!IndicatorsPool.Value + + + + + + + IndicatorsPool + + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + 2pt + 2pt + 2pt + 2pt + + + + @@ -1821,6 +2175,9 @@ end + + + @@ -1838,7 +2195,7 @@ end 6.00709in 0.29875in 1.11458in - 11.43041in + 14.43041in 4 - true @@ -1314,6 +1334,178 @@ end + + + + true + true + + + + + Indicators Process + + + + + + + Textbox1 + + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + SteelBlue + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Indicators System + + + + + + + Textbox4 + + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + SteelBlue + 2pt + 2pt + 2pt + 2pt + + + true + + + + + + true + true + + + + + Indicators Pool + + + + + + + Textbox6 + + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + SteelBlue + 2pt + 2pt + 2pt + 2pt + + + + @@ -1806,6 +1998,168 @@ end + + + + true + true + + + + + =Fields!IndicatorsProcess.Value + + + + + + + IndicatorsProcess + + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!IndicatorsSystem.Value + + + + + + + IndicatorsSystem + + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!IndicatorsPool.Value + + + + + + + IndicatorsPool + + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + + Silver + + 1pt + + 2pt + 2pt + 2pt + 2pt + + + + @@ -1821,6 +2175,9 @@ end + + + @@ -1838,7 +2195,7 @@ end 6.00709in 0.29875in 1.11458in - 11.43041in + 14.43041in 4