Solved

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

Posted on 2013-12-15
6
224 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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
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…
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

744 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

11 Experts available now in Live!

Get 1:1 Help Now