Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase ««123»»

Statistics - 3 Expand / Collapse
Author
Message
Posted Tuesday, October 09, 2012 7:05 AM


Say Hey Kid

Say Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey Kid

Group: General Forum Members
Last Login: Wednesday, April 09, 2014 10:34 AM
Points: 701, Visits: 1,140
Thanks.
Post #1370374
Posted Tuesday, October 09, 2012 7:21 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Yesterday @ 2:08 PM
Points: 1,189, Visits: 2,018
Very interesting, thanks for the question!
Post #1370387
Posted Tuesday, October 09, 2012 7:23 AM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Today @ 1:35 AM
Points: 2,417, Visits: 1,564
Nice, learnt something new today. Thanks.
Post #1370389
Posted Tuesday, October 09, 2012 8:40 AM


Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Yesterday @ 5:35 PM
Points: 3,148, Visits: 1,899
Thanks for the question!
Post #1370427
Posted Tuesday, October 09, 2012 8:59 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Monday, April 07, 2014 7:39 AM
Points: 19, Visits: 130

Summary !!
By default, SQL Server updates index statistics automatically. Frequency of automatic updates depends on number of rows in the table. If you allow SQL Server to update statistics automatically it will use the following rules:

1. If a table has 6 or fewer rows, statistics will be updated after 6 changes
2. If a table has 500 or fewer rows, statistics will be updated after 500 changes
3. If a table has more than 500 rows, statistics will be updated after 20% of the total rows plus 500 rows are changed (INSERTED, UPDATED or DELETED)
4. SQL Server uses the rowmodctr column of the sysindexes table to determine the number of changes since the last update of statistics
Post #1370441
Posted Tuesday, October 09, 2012 9:03 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Friday, March 28, 2014 10:32 AM
Points: 1,033, Visits: 229
Thanks for posting this! I'd been hoping that there was a secret way of forcing SQL to automatically update stats more frequently. Our usual solution has always been to create a SQL job that runs update stats frequently... but this trace flag may be just the trick. I'll try it out on a test server....
Post #1370444
Posted Tuesday, October 09, 2012 10:46 AM
SSChasing Mays

SSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing Mays

Group: General Forum Members
Last Login: Wednesday, September 25, 2013 8:54 PM
Points: 606, Visits: 151
Thanks For good Question, its allow reading to different Article before you are going to attempt. but at the end +1

Post #1370485
Posted Tuesday, October 09, 2012 12:38 PM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Yesterday @ 7:28 PM
Points: 20,453, Visits: 14,063
saurabh.x.sinha (10/9/2012)

Summary !!
By default, SQL Server updates index statistics automatically. Frequency of automatic updates depends on number of rows in the table. If you allow SQL Server to update statistics automatically it will use the following rules:

1. If a table has 6 or fewer rows, statistics will be updated after 6 changes
2. If a table has 500 or fewer rows, statistics will be updated after 500 changes
3. If a table has more than 500 rows, statistics will be updated after 20% of the total rows plus 500 rows are changed (INSERTED, UPDATED or DELETED)
4. SQL Server uses the rowmodctr column of the sysindexes table to determine the number of changes since the last update of statistics


FWIW - In SQL 2008 and up it uses colmodctr to track those changes.




Jason AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server


SQL RNNR

Posting Performance Based Questions - Gail Shaw
Posting Data Etiquette - Jeff Moden
Hidden RBAR - Jeff Moden
VLFs and the Tran Log - Kimberly Tripp
Post #1370537
Posted Wednesday, October 10, 2012 3:51 PM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Monday, March 10, 2014 5:44 PM
Points: 2,225, Visits: 1,258
I answered with hope there was such a thing and won. Excellent!

Not all gray hairs are Dinosaurs!
Post #1371147
Posted Wednesday, October 24, 2012 8:25 PM
SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Wednesday, October 24, 2012 8:17 PM
Points: 1,588, Visits: 247
Good question. Thanks for submitting.

http://brittcluff.blogspot.com/
Post #1376751
« Prev Topic | Next Topic »

Add to briefcase ««123»»

Permissions Expand / Collapse