Skip to content

Commit

Permalink
#215 added rule for Loaded Modules and enabled Loaded Modules report …
Browse files Browse the repository at this point in the history
…to run
  • Loading branch information
PiJoCoder committed Jan 31, 2023
1 parent 6ec0755 commit eb6133b
Show file tree
Hide file tree
Showing 7 changed files with 427 additions and 43 deletions.
1 change: 1 addition & 0 deletions NexusReports/AnalysisSummary_C.rdl
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,7 @@ Fields!Report.Value = "Perfmon IO", "Perfmon_IO_C",
Fields!Report.Value = "Server Configuration", "ServerConfiguration_C",
Fields!Report.Value = "Missing Indexes", "Missing Indexes_C",
Fields!Report.Value = "Spinlock Stats", "Spinlock Stats_C",
Fields!Report.Value = "Loaded Modules", "Loaded Modules_C",
Fields!Report.Value = "data imported with older SQLNexus version", Nothing,
Fields!Report.Value = "", Nothing)</ReportName>
</Drillthrough>
Expand Down
183 changes: 167 additions & 16 deletions NexusReports/Loaded Modules_C.rdl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Report xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner" xmlns:cl="http://schemas.microsoft.com/sqlserver/reporting/2010/01/componentdefinition" xmlns="http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition">
<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
<AutoRefresh>0</AutoRefresh>
<DataSources>
<DataSource Name="SqlNexusPrivate">
Expand All @@ -11,16 +11,27 @@
<rd:SecurityType>Integrated</rd:SecurityType>
<rd:DataSourceID>6b565741-f8ec-4aa2-ad6c-06f91634ff1d</rd:DataSourceID>
</DataSource>
<DataSource Name="DataSource1">
<ConnectionProperties>
<DataProvider>SQL</DataProvider>
<ConnectString>Data Source=.;Initial Catalog=sqlnexus</ConnectString>
<IntegratedSecurity>true</IntegratedSecurity>
</ConnectionProperties>
<rd:SecurityType>Integrated</rd:SecurityType>
<rd:DataSourceID>257cfc0c-5005-4b15-a01d-283cd0b09252</rd:DataSourceID>
</DataSource>
</DataSources>
<DataSets>
<DataSet Name="DataSet_Loaded_Modules">
<Query>
<DataSourceName>SqlNexusPrivate</DataSourceName>
<CommandText>if object_id('dbo.tbl_loaded_modules') is not null
begin
select * from tbl_loaded_modules
order by case when Company like 'Microsoft%' then 1 else 0 end, name
end</CommandText>
<DataSourceName>DataSource1</DataSourceName>
<CommandText>IF OBJECT_ID('dbo.tbl_dm_os_loaded_modules') IS NOT NULL
BEGIN
SELECT name, company, file_version, product_version, '0x' + CONVERT(varchar,base_address, 2) AS base_address, debug, description
FROM tbl_dm_os_loaded_modules
WHERE input_file_name like '%_Shutdown.out'
ORDER BY company
END</CommandText>
<rd:UseGenericDesigner>true</rd:UseGenericDesigner>
</Query>
<Fields>
Expand All @@ -40,6 +51,18 @@ end</CommandText>
<DataField>Company</DataField>
<rd:UserDefined>true</rd:UserDefined>
</Field>
<Field Name="product_version">
<DataField>product_version</DataField>
<rd:TypeName>System.String</rd:TypeName>
</Field>
<Field Name="debug">
<DataField>debug</DataField>
<rd:TypeName>System.Int32</rd:TypeName>
</Field>
<Field Name="description">
<DataField>description</DataField>
<rd:TypeName>System.String</rd:TypeName>
</Field>
</Fields>
</DataSet>
</DataSets>
Expand Down Expand Up @@ -120,6 +143,9 @@ end</CommandText>
<TablixColumn>
<Width>1.48351in</Width>
</TablixColumn>
<TablixColumn>
<Width>1in</Width>
</TablixColumn>
<TablixColumn>
<Width>1.58073in</Width>
</TablixColumn>
Expand All @@ -138,7 +164,11 @@ end</CommandText>
<TextRuns>
<TextRun>
<Value>Name</Value>
<Style />
<Style>
<FontSize>11pt</FontSize>
<FontWeight>Bold</FontWeight>
<Color>White</Color>
</Style>
</TextRun>
</TextRuns>
<Style />
Expand All @@ -150,6 +180,7 @@ end</CommandText>
<Color>LightGrey</Color>
<Style>Solid</Style>
</Border>
<BackgroundColor>MidnightBlue</BackgroundColor>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
Expand All @@ -168,7 +199,11 @@ end</CommandText>
<TextRuns>
<TextRun>
<Value>Company</Value>
<Style />
<Style>
<FontSize>11pt</FontSize>
<FontWeight>Bold</FontWeight>
<Color>White</Color>
</Style>
</TextRun>
</TextRuns>
<Style />
Expand All @@ -180,6 +215,7 @@ end</CommandText>
<Color>LightGrey</Color>
<Style>Solid</Style>
</Border>
<BackgroundColor>MidnightBlue</BackgroundColor>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
Expand All @@ -197,8 +233,12 @@ end</CommandText>
<Paragraph>
<TextRuns>
<TextRun>
<Value>file version</Value>
<Style />
<Value>File version</Value>
<Style>
<FontSize>11pt</FontSize>
<FontWeight>Bold</FontWeight>
<Color>White</Color>
</Style>
</TextRun>
</TextRuns>
<Style />
Expand All @@ -210,6 +250,42 @@ end</CommandText>
<Color>LightGrey</Color>
<Style>Solid</Style>
</Border>
<BackgroundColor>MidnightBlue</BackgroundColor>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
</Textbox>
</CellContents>
</TablixCell>
<TablixCell>
<CellContents>
<Textbox Name="Textbox2">
<CanGrow>true</CanGrow>
<KeepTogether>true</KeepTogether>
<Paragraphs>
<Paragraph>
<TextRuns>
<TextRun>
<Value>Product version</Value>
<Style>
<FontSize>11pt</FontSize>
<FontWeight>Bold</FontWeight>
<Color>White</Color>
</Style>
</TextRun>
</TextRuns>
<Style />
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox2</rd:DefaultName>
<Style>
<Border>
<Color>LightGrey</Color>
<Style>Solid</Style>
</Border>
<BackgroundColor>MidnightBlue</BackgroundColor>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
Expand All @@ -227,8 +303,12 @@ end</CommandText>
<Paragraph>
<TextRuns>
<TextRun>
<Value>base address</Value>
<Style />
<Value>Base address</Value>
<Style>
<FontSize>11pt</FontSize>
<FontWeight>Bold</FontWeight>
<Color>White</Color>
</Style>
</TextRun>
</TextRuns>
<Style />
Expand All @@ -240,6 +320,7 @@ end</CommandText>
<Color>LightGrey</Color>
<Style>Solid</Style>
</Border>
<BackgroundColor>MidnightBlue</BackgroundColor>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
Expand Down Expand Up @@ -312,7 +393,6 @@ end</CommandText>
<PaddingBottom>2pt</PaddingBottom>
</Style>
</Textbox>
<rd:Selected>true</rd:Selected>
</CellContents>
</TablixCell>
<TablixCell>
Expand Down Expand Up @@ -345,6 +425,36 @@ end</CommandText>
</Textbox>
</CellContents>
</TablixCell>
<TablixCell>
<CellContents>
<Textbox Name="product_version">
<CanGrow>true</CanGrow>
<KeepTogether>true</KeepTogether>
<Paragraphs>
<Paragraph>
<TextRuns>
<TextRun>
<Value>=Fields!product_version.Value</Value>
<Style />
</TextRun>
</TextRuns>
<Style />
</Paragraph>
</Paragraphs>
<rd:DefaultName>product_version</rd:DefaultName>
<Style>
<Border>
<Color>LightGrey</Color>
<Style>Solid</Style>
</Border>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
</Textbox>
</CellContents>
</TablixCell>
<TablixCell>
<CellContents>
<Textbox Name="base_address">
Expand All @@ -355,7 +465,9 @@ end</CommandText>
<TextRuns>
<TextRun>
<Value>=Fields!base_address.Value</Value>
<Style />
<Style>
<Format>0.00;(0.00)</Format>
</Style>
</TextRun>
</TextRuns>
<Style />
Expand Down Expand Up @@ -385,6 +497,7 @@ end</CommandText>
<TablixMember />
<TablixMember />
<TablixMember />
<TablixMember />
</TablixMembers>
</TablixColumnHierarchy>
<TablixRowHierarchy>
Expand All @@ -401,7 +514,7 @@ end</CommandText>
<Top>1.23625in</Top>
<Left>0.66333in</Left>
<Height>0.4375in</Height>
<Width>12.42709in</Width>
<Width>13.42709in</Width>
<ZIndex>2</ZIndex>
<Style>
<Border>
Expand Down Expand Up @@ -496,6 +609,44 @@ end</CommandText>
<Hidden>true</Hidden>
</ReportParameter>
</ReportParameters>
<ReportParametersLayout>
<GridLayoutDefinition>
<NumberOfColumns>6</NumberOfColumns>
<NumberOfRows>1</NumberOfRows>
<CellDefinitions>
<CellDefinition>
<ColumnIndex>0</ColumnIndex>
<RowIndex>0</RowIndex>
<ParameterName>dsServerName</ParameterName>
</CellDefinition>
<CellDefinition>
<ColumnIndex>1</ColumnIndex>
<RowIndex>0</RowIndex>
<ParameterName>dsDatabaseName</ParameterName>
</CellDefinition>
<CellDefinition>
<ColumnIndex>2</ColumnIndex>
<RowIndex>0</RowIndex>
<ParameterName>FmtAmbientBackground</ParameterName>
</CellDefinition>
<CellDefinition>
<ColumnIndex>3</ColumnIndex>
<RowIndex>0</RowIndex>
<ParameterName>FmtChartBackground</ParameterName>
</CellDefinition>
<CellDefinition>
<ColumnIndex>4</ColumnIndex>
<RowIndex>0</RowIndex>
<ParameterName>FmtError</ParameterName>
</CellDefinition>
<CellDefinition>
<ColumnIndex>5</ColumnIndex>
<RowIndex>0</RowIndex>
<ParameterName>FmtWarning</ParameterName>
</CellDefinition>
</CellDefinitions>
</GridLayoutDefinition>
</ReportParametersLayout>
<EmbeddedImages>
<EmbeddedImage Name="warning">
<MIMEType>image/gif</MIMEType>
Expand Down
2 changes: 1 addition & 1 deletion NexusReports/SQL Perf Main.rdl
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ values ('AnalysisSummary_C', 'Best Practice &amp; Analysis Summary', 'Most comm


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_loaded_modules', 500, 'Perf Stats Collector', 1,2000)
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)
Expand Down
Loading

0 comments on commit eb6133b

Please sign in to comment.