是否有一个存储过程来计算我应该添加哪些索引?
首先,如果这是在错误的网站上,我们深表歉意。
其次,我依稀记得几年前,当尝试对 SQL Server 2005 数据库进行大量索引时,我可以运行一个存储过程,该过程会在表上输出统计信息,以帮助判断索引应放置在何处。
我的判断是对的还是我在做梦?
Firstly, apologies if this is on the wrong site.
Secondly, I vaguely remember from a couple of years ago, when trying to heavily index a SQL Server 2005 db that there was a stored procedure that I could run that would output stats on tables that would help judge where indexes should be placed.
Am I right in this, or was I dreaming it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
SQL Server 2005 及更高版本有缺少索引 DMV。
SQL Server 2005 and above have a missing indexes DMV.
您会想要查看性能仪表板。
http:// /blogs.msdn.com/b/sqltips/archive/2007/03/29/sql-server-2005-performance-dashboard-reports.aspx
Youll be wanting to look at the Performance Dashboard.
http://blogs.msdn.com/b/sqltips/archive/2007/03/29/sql-server-2005-performance-dashboard-reports.aspx