SQL Server Lock Analysis

Report.SQLServer.2016.LockAnalysis (LinkedReport)

SQL Server Lock Analysis Report

Knowledge Base article:

Summary

How does this report work?

The SQL Lock Analysis report displays one chart with these performance items:

The report finds data if the objects supplied are of type

SQL DB Engine

Search for objects with contains and (e.g. “Instance1”)

The report displays for every selected object a separate chart. Data is show in hours per day for peak hours (7am-7pm).

How to use this report?

When run from the Reporting space:

The second column in the search results shows of which type the displayed objects are. Make sure you select objects of type SQL DB Engine.

When run from the Monitoring space:

Create a state view or performance view by choosing the “SQL DB Engine” type.

What Parameters are offered?

Date/Time selection: Allows selecting a relative or fixed date and time range and time zone.

Object: Allows adding objects to run this report for

Element properties:

BaseMicrosoft.SystemCenter.DataWarehouse.Report.Performance
TargetMicrosoft.SQLServer.2016.DBEngine
AccessibilityPublic
VisibleTrue

Source Code:

<LinkedReport ID="Report.SQLServer.2016.LockAnalysis" Target="SQL2016Core!Microsoft.SQLServer.2016.DBEngine" Accessibility="Public" Visible="true" Base="ReportLibrary!Microsoft.SystemCenter.DataWarehouse.Report.Performance">
<ParameterBlock xmlns="http://schemas.microsoft.com/mom/reporting/2007/ReportParameterSettings" columns="6">
<Controls>
<Control type="Microsoft.SystemCenter.DataWarehouse.Report.ParameterControl.ComboBox" columnSpan="2">
<ReportParameters>
<ReportParameter name="DataAggregation">
<Prompt>Microsoft.SystemCenter.DataWarehouse.Report.Library!Microsoft.SystemCenter.DataWarehouse.Report.ParameterPrompt.DataAggregation</Prompt>
</ReportParameter>
</ReportParameters>
</Control>
<Control type="Microsoft.SystemCenter.DataWarehouse.Report.ParameterControl.LinkedPerformanceChartObjectPicker" columnSpan="4" rowSpan="3">
<ReportParameters>
<ReportParameter name="ObjectList">
<Prompt>Microsoft.SystemCenter.DataWarehouse.Report.Library!Microsoft.SystemCenter.DataWarehouse.Report.ParameterPrompt.ObjectList</Prompt>
</ReportParameter>
<ReportParameter name="ManagementGroupId" binding="GroupList"/>
</ReportParameters>
<Properties>
<Property name="ValueTemplate">
<Value>
&lt;Data&gt;
&lt;Chart ObjectJoin="ChartPerObject"&gt;
&lt;Series&gt;
&lt;Rule&gt;$MPElement[Name="Microsoft.SQLServer.2016.NumberDeadlocksPerSecond"]$&lt;/Rule&gt;
&lt;Scale&gt;1&lt;/Scale&gt;
&lt;Type&gt;Line&lt;/Type&gt;
&lt;Color&gt;63,63,255&lt;/Color&gt;
&lt;/Series&gt;
&lt;Series&gt;
&lt;Rule&gt;$MPElement[Name="Microsoft.SQLServer.2016.LockWaitsPerSecond"]$&lt;/Rule&gt;
&lt;Scale&gt;1&lt;/Scale&gt;
&lt;Type&gt;Line&lt;/Type&gt;
&lt;Color&gt;0,159,0&lt;/Color&gt;
&lt;/Series&gt;
&lt;Series&gt;
&lt;Rule&gt;$MPElement[Name="Microsoft.SQLServer.2016.LockRequestsPerSecond"]$&lt;/Rule&gt;
&lt;Scale&gt;1&lt;/Scale&gt;
&lt;Type&gt;Line&lt;/Type&gt;
&lt;Color&gt;255,31,31&lt;/Color&gt;
&lt;/Series&gt;
&lt;/Chart&gt;
&lt;/Data&gt;
</Value>
</Property>
<Property name="ContextObjectBinding">
<Value>Containment</Value>
</Property>
<Property name="TypeFilter">
<Value>Microsoft.SQLServer.2016.DBEngine</Value>
</Property>
</Properties>
</Control>
<Control type="Microsoft.SystemCenter.DataWarehouse.Report.ParameterControl.BusinessRelativeDateTimePicker" columnSpan="2">
<ReportParameters>
<ReportParameter name="TimeZone" binding="TimeZone">
<Prompt>Microsoft.SystemCenter.DataWarehouse.Report.Library!Microsoft.SystemCenter.DataWarehouse.Report.ParameterPrompt.TimeZone</Prompt>
</ReportParameter>
<ReportParameter name="TimeZoneName" binding="TimeZoneName"/>
<ReportParameter name="StartDate_BaseType" binding="StartDate_BaseType"/>
<ReportParameter name="StartDate_BaseValue" binding="StartDate_BaseValue">
<Prompt>Microsoft.SystemCenter.DataWarehouse.Report.Library!Microsoft.SystemCenter.DataWarehouse.Report.ParameterPrompt.StartDateTime</Prompt>
</ReportParameter>
<ReportParameter name="StartDate_OffsetType" binding="StartDate_OffsetType"/>
<ReportParameter name="StartDate_OffsetValue" binding="StartDate_OffsetValue"/>
<ReportParameter name="EndDate_BaseType" binding="EndDate_BaseType"/>
<ReportParameter name="EndDate_BaseValue" binding="EndDate_BaseValue">
<Prompt>Microsoft.SystemCenter.DataWarehouse.Report.Library!Microsoft.SystemCenter.DataWarehouse.Report.ParameterPrompt.EndDateTime</Prompt>
</ReportParameter>
<ReportParameter name="EndDate_OffsetType" binding="EndDate_OffsetType"/>
<ReportParameter name="EndDate_OffsetValue" binding="EndDate_OffsetValue"/>
<ReportParameter name="TimeType" binding="TimeType"/>
<ReportParameter name="TimeWeekMap" binding="TimeWeekMap"/>
</ReportParameters>
</Control>
<Control type="Microsoft.SystemCenter.DataWarehouse.Report.ParameterControl.ComboBox">
<ReportParameters>
<ReportParameter name="AggregationType">
<Prompt>Microsoft.SystemCenter.DataWarehouse.Report.Library!Microsoft.SystemCenter.DataWarehouse.Report.ParameterPrompt.Histogram</Prompt>
</ReportParameter>
</ReportParameters>
</Control>
<Control type="Microsoft.SystemCenter.DataWarehouse.Report.ParameterControl.BooleanPicker">
<ReportParameters>
<ReportParameter name="Enable3D">
<Prompt>Microsoft.SystemCenter.DataWarehouse.Report.Library!Microsoft.SystemCenter.DataWarehouse.Report.ParameterPrompt.Chart3D</Prompt>
</ReportParameter>
</ReportParameters>
</Control>
</Controls>
</ParameterBlock>
</LinkedReport>