[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

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

Posted on 2013-12-15
6
Medium Priority
?
257 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 43

Expert Comment

by:Eugene Z
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 43

Expert Comment

by:Eugene Z
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 43

Accepted Solution

by:
Eugene Z earned 1500 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

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

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

What if you have to shut down the entire Citrix infrastructure for hardware maintenance, software upgrades or "the unknown"? I developed this plan for "the unknown" and hope that it helps you as well. This article explains how to properly shut down …
When trying to connect from SSMS v17.x to a SQL Server Integration Services 2016 instance or previous version, you get the error “Connecting to the Integration Services service on the computer failed with the following error: 'The specified service …
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

650 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