Skip to main content
Solved

Report Designer: how do I view the SQL query being called that used for the report?

  • January 21, 2026
  • 3 replies
  • 36 views

Forum|alt.badge.img+2

Do I need to build my own SQL query using the tables/relationship/filters in the Report Designer or is there a way to view the exact SQL query being used to output the report?

Best answer by BenjaminCrisman

@bpgraves  You can run the report and then check the trace and that will show you the query. You can also turn on Request Profiler and enable the logging, then run the report and all the data will be accessible there as well.

3 replies

ricoybanez
Jr Varsity III
Forum|alt.badge.img+4
  • Jr Varsity III
  • January 21, 2026

@bpgraves

Build it within the Report Designer. 


WillH
Semi-Pro I
Forum|alt.badge.img+4
  • Semi-Pro I
  • January 21, 2026

Hi ​@bpgraves 
As ​@ricoybanez  said, you need to build directly in the designer.
If you want to see the exact SQL query, you probably need to be pulling a database trace out of your logging, but Acumatica works through BQL, which is mostly similar to SQL, except you’re dealing with constructed view tables that Acumatica already defined.

If you want to know how the SQL of a table links together, I’d personally make a GI with the links you wanted, then use the Trace to view the executed SQL after you run it.

Otherwise, ​@TimRodman   built something he calls AugSQL which can get you more SQL access, but I’ve never used it. (ref: https://www.augforums.com/augsql/ )


If you’re just starting out and want to get an idea for how things hang together, I found a combination of the following helped my learning journey:

  • Using the GI editor for a Generic Inquiry that deals with the information you want.
  • Using the Report Designer for a Report that deals with the information you want.
  • The DAC Schema Browser is newer than when I learnt, but a really useful tool.
  • The GI Designer “Add Related Table” function is great for tracing database links.

BenjaminCrisman
Acumatica Employee
Forum|alt.badge.img+4
  • Acumatica Support Team
  • Answer
  • January 21, 2026

@bpgraves  You can run the report and then check the trace and that will show you the query. You can also turn on Request Profiler and enable the logging, then run the report and all the data will be accessible there as well.