• Management Pack:  SQL Server 2012
  • MP Version:  7.0.4.0
  • Released:  4/18/2018
  • Publisher:  Microsoft

SQL Re-Compilation Monitor

  • ID:  Microsoft.SQLServer.2012.DBEngine.SQLReCompilationMonitor
  • Description:  SQL Re-Compilation for 2012 DB Engine
  • Target:  SQL Server 2012 DB Engine
  • Enabled:  No

Operational States

Name State Description
DB Engine SQL Re-Compilation is ok Success DB Engine SQL Re-Compilation is ok
DB Engine SQL Re-Compilation is too high Warning DB Engine SQL Re-Compilation is too high

Overridable Parameters

Parameter Name Default Value Description Override
Interval (seconds) 300 The recurring interval of time in seconds in which to run the workflow.
Timeout (seconds) 200 Specifies the time the workflow is allowed to run before being closed and marked as failed.
Threshold 25 If the ratio between SQL Re-Compilation and SQL Compilation is greater than this threshold alert will be generated
Number of samples 6 Number of samples to average before compare it with threshold
Synchronization Time   The synchronization time specified by using a 24-hour format. May be omitted.

Alert Details

Monitor State Message Priority Severity Auto Resolution
DB Engine SQL Re-Compilation is too high (Warning) SQL DB 2012 SQL Re-Compilation is too high Medium Warning Yes

Run As Profiles

Name
Default

Monitor Knowledgebase

Summary

SQL Re-Compilation monitor for SQL 2012 DB Engine

Certain changes in a database can cause an execution plan to be either inefficient or invalid, based on the new state of the database. SQL Server detects the changes that invalidate an execution plan and marks the plan as not valid. A new plan must then be recompiled for the next connection that executes the query.

Causes

High number of recompilations comparing to compilations.

Resolutions

Start SQL Profiler and check SQL:StmtRecompile trace to identify root cause of issue.

External References
This monitor does not contain any external references.

See Also for SQL Server 2012 Management Pack


Downloads for SQL Server 2012 Management Pack

AZURE OPTIMIZATION ASSESSMENT GET STARTED
MIGRATION TO AZURE GET STARTED
SYSTEM CENTER MIGRATION TO AZURE GET STARTED
MIGRATION TO AZURE FOR SQL AND WINDOWS 2008 GET STARTED