You need to set up a monitoring process that will capture any cases where statistics could have been useful if they existed

You are the new database administrator for a SQL Server 2014 instance.
You conduct an assessment on the instance and determine that the auto create statistics
setting on the database named DB1 has been turned off. You see no evidence that any
maintenance has been occurring.
You want to set up monitoring to see if query performance is being affected.
You need to set up a monitoring process that will capture any cases where statistics could
have been useful if they existed.
What should you do?

You are the new database administrator for a SQL Server 2014 instance.
You conduct an assessment on the instance and determine that the auto create statistics
setting on the database named DB1 has been turned off. You see no evidence that any
maintenance has been occurring.
You want to set up monitoring to see if query performance is being affected.
You need to set up a monitoring process that will capture any cases where statistics could
have been useful if they existed.
What should you do?

A.
Create a SQL Server Agent job to execute DBCC SHOWSTATISTICS on each of the
primary key columns in the database.

B.
Use the missing_column_statistics extended event.

C.
Query the sys.statistics system view to see all cases where the statistics were last
needed.

D.
Write a query using the sys.dm_db_missing_index_group_stats DMV Joining to
sys.indexes, filtering on is_hypothetical.

Explanation:

The Missing Column Statistics event class indicates that column statistics that could have
been useful for the optimizer are not available.
By monitoring the Missing Column Statistics event class, you can determine if there are
statistics missing for a column used by a query. This can cause the optimizer to choose a
less efficient query plan than expected.



Leave a Reply 4

Your email address will not be published. Required fields are marked *


Ricky

Ricky

My answer is B

Vladimir

Vladimir

B.

DBCC SHOWSTATISTICS – No such statement (DBCC SHOW_STATISTICS does not display missing statistics)

sys.statistics – No such view (sys.stats does not display missing statistics)

sys.dm_db_missing_index_group_stats – Returns summary information about groups of missing indexes, no statistics