Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 5123

Difference between DTA and DMVs

$
0
0

Hi All,

I am writing a query that is fetching data from Adventureworks database table,i.e Person.Address.I do not have any nonclustered index on stateprovinceid but other coulmns do have nonclustered and clustred index(Stateprovinceid as PK).so when i write query

select stateprovinceid,city,postalcode

from person.address where stateprovinceid=1

it is showing Missing Index detail in Graphical execution plan for stateprovinceidbut does not show as missing index in DMV i.e sys.dm_db_missing_index_details.
How is that?

some time it does not show missing index detail in graphical execution plan but shows as recommended index for Stateprovinceid in DTA when I run this query in DTA.Not able to understand this behavior og query optimizer and how DTA and DMV and also execution plan is different.

Can anyone explain?Thank you in advance


srm_2010


Viewing all articles
Browse latest Browse all 5123

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>