Sqlserver-dba.com

Subscribe

Subscribe to RSS feed  Follow @jackvamvas - Twitter

Enjoy this post? Enter your email address for updates on new posts:

Delivered by FeedBurner

Email +Jack Vamvas at jack@sqlserver-dba.com

SQLServer-DBA.com Links

Subscribe to newsletter

Dba_db2_button

Powered by TypePad
SQL Server – AUTO CREATE STATISTICS

15 August,2012 by Jack Vamvas

Question: Usually when I look at the statistics information on an  index , SQL statistics  are available.  I was troubleshooting a query performance issue today – and noticed no statistics under heavily used objects. What could be causing this problem, as I understand the DB engine maintains the statistics about the key value distribution, and uses the statistics for query plan compilation.?

 

Answer: Check the status of AUTO CREATE STATISTICS. If it’s OFF , then most likely someone has turned it off.   When AUTO CREATE STATISTICS is set at OFF , a manual process must be set up to create statistics.

Normally I have AUTO CREATE STATISTICS at ON.  This means the SQL Query Optimizer creates the statistics on individual columns for cardinality improvement.

Read Also 

SQL Server Query Optimizer and Statistics

Filtered statistics, T-SQL best practises for T-SQL Tuesday


Author: Jack Vamvas (http://www.sqlserver-dba.com)

Enjoy this post? Enter your email address for updates on new posts:

Delivered by FeedBurner

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment


sqlserver-dba.com | SQL Server Performance Tuning | SQL Server DBA:Everything | FAQ | Contact|Copyright & Disclaimer