Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 SQL Server Statistics - auto create

Author  Topic 

ranvir_2k
Posting Yak Master

180 Posts

Posted - 2013-10-07 : 07:01:25
Hi all,

I have auto create statistics on in my database and I see that the statistics that have been created have all been for single columns.

I ran the Database Tuning Advisor and it recommended that I add some additional statistics but this time with composite columns. This improved the performance of my queries.

My question is - does the auto create statistics option only create indexes on single columns as opposed to composite columns?

Thanks,

Ranvir

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-10-07 : 07:04:04
yep . Auto create statisics only creates single column statistics
For composite columns you need to create them manually


http://blogs.msdn.com/b/ianjo/archive/2005/11/10/491548.aspx?Redirected=true

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page

ranvir_2k
Posting Yak Master

180 Posts

Posted - 2013-10-07 : 07:10:44
Thanks :)
Go to Top of Page
   

- Advertisement -