A Distribution Statistics object is a sampled map of the distribution of data in a table. Such statistics help the Query Optimizer of SQL Server's Database Engine to translate the 'logical' SQL Query into the best strategy for doing all the physical operations of joining, sorting, and selecting the data. Most of the time, this work happens effectively without the database administrator having to be aware of what is going on, but occasionally, if the statistics no longer reflect what is actually in the table, then queries can suddenly run grindingly slow. At this point, the DBA must intervene to correct the problem.
Holger divides his work into two parts. In the first part, he explains what "statistics" are, why they are there, how they are created, updated and removed. He shows how to inspect them and to maintain them. In the second part, he lists all the problems that are related to these statistics objects, and how to solve them.
Holger divides his work into two parts. In the first part, he explains what "statistics" are, why they are there, how they are created, updated and removed. He shows how to inspect them and to maintain them. In the second part, he lists all the problems that are related to these statistics objects, and how to solve them.
Title SQL Server Statistics
Author(s) Holger Schmeling
Publisher: Red Gate books (November 15, 2010)
Language: English
eBook: https://www.simple-talk.com/books/sql-books/sql-server-statistics/
Author(s) Holger Schmeling
Publisher: Red Gate books (November 15, 2010)
Language: English
eBook: https://www.simple-talk.com/books/sql-books/sql-server-statistics/
No comments:
Post a Comment