简体   繁体   English

SQL Server 2005查询统计信息

[英]SQL Server 2005 Query Statistics

Where can I find some in-depth information on tuning statistics in SQL Server 2005? 在哪里可以找到有关SQL Server 2005中调优统计信息的一些深入信息?

I need to really delve in to what statistics are being used in a number of different queries, how they are interacting with indexes, how/when/where to use custom statistics (over and above what the database tuning advisor recommends), when/how to update the statistics for the best performance etc. etc. 我需要真正深入研究在许多不同的查询中使用什么统计信息,它们如何与索引交互,如何/何时/何处使用自定义统计信息(超出数据库调优顾问推荐的内容),何时/如何更新统计数据以获得最佳表现等。等

Does anyone know of any good articles/webcasts/books around this subject? 有没有人知道有关这个主题的任何好文章/网络广播/书籍?

Thanks in advance, 提前致谢,

Tom 汤姆

本书提供了有关性能调优的相当详细的信息, 内容包括Microsoft®SQLServer(TM)2005:查询调优和优化

I suggest you review the following comprehensive Microsoft TechNet reference. 我建议您查看以下全面的Microsoft TechNet参考。

Statistics Used by the Query Optimizer 查询优化程序使用的统计信息

I suggest you visit http://sqlserverpedia.com/ and look for blog/article/demo/screencast/podcast specific to your needs. 我建议您访问http://sqlserverpedia.com/并根据您的需求查找blog / article / demo / screencast / podcast。 SQLServerPedia is a free Premier Online SQL Server resource. SQLServerPedia是一个免费的Premier Online SQL Server资源。

Or are you specifically asking these questions right now: 或者你现在具体问这些问题:

"Why is this query running slow? Is my index getting used? Why does this query run faster than this query?" “为什么这个查询运行缓慢?我的索引是否被使用?为什么这个查询比这个查询运行得更快?”

The book " Dissecting SQL Server Execution Plans " will help you on this regard. 解析SQL Server执行计划 ”一书将在这方面为您提供帮助。 A free ebook version is available here . 免费电子书版本可以在这里

;-) MarlonRibunal ;-) MarlonRibunal

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM