Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 

Articles with tag statistics Rss

Search for any content tagged statistics

<< Previous 20    Items 21 to 26 of 26   
 

Statistics Used by the Query Optimizer in Microsoft SQL Server 2008

Microsoft SQL Server 2008 collects statistical information about indexes and column data stored in the database. These statistics are used by the SQL Server query optimizer to choose the most efficient plan for retrieving or updating data. This paper describes what data is collected, where it is stored, and which commands create, update, and delete statistics. By default, SQL Server 2008 also creates and updates statistics automatically, when such an operation is considered to be useful. This paper also outlines how these defaults can be changed on different levels (column, table, and database).  Read more...
By Additional Articles 2009/07/24 | Source: TechNet | Category: query optimization
Rating: (not yet rated)  Rate this |   Briefcase | 2,061 reads

Retaining historical index usage statistics for SQL Server - Part 2

We look at performing the same task for the sys.dm_db_index_operational_stats Dynamic Management Function (or DMF.) The process is identical, the code is however quite different due to the structural differences between sys.dm_db_index_usage_stats and sys.dm_db_index_operational_stats.  Read more...
By Additional Articles 2009/06/24 | Source: MSSQLTips.com
Rating: (not yet rated)  Rate this |   Briefcase | 1,954 reads

Retaining historical index usage statistics for SQL Server

In this three-part series I'll look at what you can do to persist this data so you don't find yourself waiting for usage stats to compile over a reasonable period of time just so you can harness the power of the indexing DMOs in your performance tuning process.   Read more...
By Additional Articles 2009/05/26 | Source: MSSQLTips.com | Category: statistics
Rating: (not yet rated)  Rate this |   Briefcase | 878 reads

Index Metadata and Statistics Update Date for SQL Server

Statistics update date is stored as metadata on the SQL instance, but after a great deal of research against the system tables and DMVs I realized that this information is not readily exposed to the DBA via any other method than the STATS_DATE() function or the SQL Server Management Studio graphical user interface (GUI).  Read more...
By Additional Articles 2008/08/12 | Source: MSSQLTips.com | Category: indexing
Rating: (not yet rated)  Rate this |   Briefcase | 2,319 reads

Rebuilding Stats: Twice or Not At All

Are you rebuilding statistics twice on your tables? Longtime expert, Andy Warren, shows why you might be asking more work of your SQL Server than is required.  Read more...
By Andy Warren 2008/07/29 | Source: SQLServerCentral.com | Category: indexing
Rating: |  Discuss |   Briefcase | 8,860 reads

Statistics and Indexes

When is it okay to let SQL Server to make a statistic for columns in your queries, and when should you take those statistics and make an index out of them? What I do is to test all of my procs, and if they generate system statistics (_WA_SYS%), then I add an index to the table for the column in the statistic. But is this a good practice?  Read more...
By Additional Articles 2008/03/11 | Source: SQL Community | Category: indexing
Rating:  Rate this |   Briefcase | 3,246 reads
<< Previous 20    Items 21 to 26 of 26