AXForum  
Вернуться   AXForum > Microsoft Dynamics CRM > Dynamics CRM: Blogs
CRM
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 16.07.2009, 10:58   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
Attached at the end of this post is a set of NAV objects that collects index usage information, and displays it in a NAV client so that you can sort tables by no. of Indexes / Index Reads / (Index) Block wait time, etc.:








The tool is using these three SQL Queries / DMVs:

  • sys.indexes: Basic information about indexes
  • sys.dm_db_index_usage_stats: No. of Index Reads, updates, etc
  • sys.dm_db_index_operational_stats: Index blocking / wait time etc.
The information that is collected is already described in these posts:

So the new thing is that now the information is read into NAV, making it more easy to browse through it, get an overview, and having information from various queries collected in one place.





Note:

  • The tool, relying on Dynamic Management Views (DMVs) will only work for SQL2005 and later (not SQL2000).
  • The information that is collected is since last time SQL Server was restarted.



The tool contains the following objects:





Type
ID
Name

Table
74100
IUIT Setup

Table
74101
IUIT Index

Table
74102
IUIT Table

Form
74100
IUIT Setup

Form
74101
IUIT Index List

Form
74102
IUIT Table List

Codeunit
74100
IUIT Mgt
And it assumes that you have a partner's developers license.





To run it:


Run form 74102 "IUIT Table List". First set up the SQL connection by clicking Table -> Setup, and specify SQL Server Name, Database Name and credentials.


Then go back to the "IUIT Table List"-form, and click Functions -> Update.


After the tool has collected the information (takes a few minutes), you can sort your tables by a number of factors which can all affect performance. And you can look at indexes for each table (Table -> Indexes (Ctrl+F5)), and get statistics for each individual index.








These postings are provided "AS IS" with no warranties and confer no rights. You assume all risk for your use.


Lars Lohndorf-Larsen


Microsoft Dynamics UK
Microsoft Customer Service and Support (CSS) EMEA



Читать дальше
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 


Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 14:06.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.