web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Unit testing query

(0) ShareShare
ReportReport
Posted on by 1,559

Hi Friends,

We have a report having performance issue, the query behind the report is likely the culprit.

Is there a good approach to test the query alone without running report? in other words, if we can dissect the query into sort of native sql statement to test, that would be ideal.

Many thanks,

River

*This post is locked for comments

I have the same question (0)
  • Martin Dráb Profile Picture
    237,795 Most Valuable Professional on at

    Sure, you can either execute the AX query outside the report or take the actual T-SQL query sent to database and analyze it.

  • Ganriver1 Profile Picture
    1,559 on at

    Hi Martin,

    How can I get the T-SQL query from query object in AOT?

    Thanks,

  • Verified answer
    Martin Dráb Profile Picture
    237,795 Most Valuable Professional on at

    You can use Trace Parser or various options of SQL Server, such as Query Store, Extended Events or SQL profiler.

  • Ganriver1 Profile Picture
    1,559 on at

    Thanks, Martin.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans