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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 03.10.2016, 23:12   #1  
Blog bot is offline
Blog bot
Участник
 
25,459 / 846 (79) +++++++
Регистрация: 28.10.2006
dynamicsaxhints: Dynamics AX Trace Parser vs SQL Server Profiler
Источник: http://dynamicsaxhints.blogspot.com/...ql-server.html
==============

While I was working on the previous post, I noticed a strange difference between data presented in Microsoft Dynamics AX Trace Parser and SQL Server Profiler. Let's run a couple of tests.

Problem description
Trace the following select statements in Tracing Cockpit and SQL Server Profiler and compare the results:
select AccountNum from custTable;
select firstOnly AccountNum from custTable;Solution
Setup Tracing Cockpit to collect detailed database data:
Setup SQL Server Profiler to trace RPC:Starting and RPC:Completed events:

Let's run the first select statement. The results in Trace Parser are:
20 rows were fetched. The results in SQL Server Profiler are different - 10 rows were fetched into buffer:
What is correct and what is wrong? To be honest, I don't know for sure. Maybe the tools collect different data.

Let's run the second select statement with firstOnly keyword. I expect 1 row to be fetched. The results in Trace Parser are:
0 rows were fetched. It looks very strange. Definitely 1 record was fetched into a table buffer in the job. The results in SQL Server Profiler look better - 1 row was fetched into buffer:

Conclusion
I personally trust more SQL Server Profiler because of the much longer product history. Once again it can be that the tools present different data, but starting from now I will be more cautious about the data in Trace Parser.
Please share your thoughts and expereience on this topic.

Источник: http://dynamicsaxhints.blogspot.com/...ql-server.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
CRM DE LA CREME! CRM 4.0 Disaster Recovery Blog bot Dynamics CRM: Blogs 2 26.02.2016 08:23
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2011 Update Rollup 10 Blog bot Dynamics CRM: Blogs 0 17.08.2012 03:27
axinthefield: Dynamics AX Event IDs Blog bot DAX Blogs 0 01.03.2011 22:11
axinthefield: SQL Server Trace Flags for Dynamics AX Blog bot DAX Blogs 0 23.11.2010 21:11
Dynamics AX: SQL Server, Heart of Dynamics AX Blog bot DAX Blogs 0 13.07.2007 18:00
Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

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

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

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