Solved

The sys.dm_xe_map_values, why it can see Reasons for Statement Recompilation

Posted on 2013-12-15
6
231 Views
Last Modified: 2013-12-23
Dear all,

someone said this MS SQL SP, sys.dm_xe_map_values, can help to check out the reason of Statement Recompilation, how it can be done by that SP?
0
Comment
Question by:marrowyung
  • 3
  • 3
6 Comments
 
LVL 42

Expert Comment

by:EugeneZ
ID: 39722690
sys.dm_xe_map_values system view:
Returns a mapping of internal numeric keys to human-readable text.
http://technet.microsoft.com/en-us/library/bb630350.aspx

try:

SELECT d.name,d.map_key,d.map_value
FROM sys.dm_xe_map_values   d
WHERE d.name = N'statement_recompile_cause'
ORDER BY d.map_key

Open in new window

0
 
LVL 1

Author Comment

by:marrowyung
ID: 39723301
then what should I look at ?

the most busiest DB system return nothing by that query .
0
 
LVL 1

Author Comment

by:marrowyung
ID: 39723303
I don't think that link tell enought information how that view.
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 42

Expert Comment

by:EugeneZ
ID: 39725324
Can you please clarify your question?
You asked about the system view sys.dm_xe_map_values (BTW: it is not stored procedure )

The answer was provided.
No please tell what is the issue? what are you checking?
0
 
LVL 1

Author Comment

by:marrowyung
ID: 39725919
as I said, I don't understand that answer and can't see why it is related.
0
 
LVL 42

Accepted Solution

by:
EugeneZ earned 500 total points
ID: 39726261
<The sys.dm_xe_map_values, why it can see Reasons for Statement Recompilation>?

again: because of it is System sql server view that shows info based on the collected from last restart detail. It is how sql server works

Dynamic management views and functions return internal, implementation-specific state data. Their schemas and the data they return may change in future releases of SQL Server.
http://technet.microsoft.com/en-us/library/ms188754.aspx

----
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Looking for a solution or even half a solution for custom web portal 5 42
SQL LINE CONTINUATION ISSUE 12 31
Help Required 2 29
SQL view 2 26
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now