View MDX query generated while browsing a cube in SSMS

stackoverflowuser picture stackoverflowuser · Jul 23, 2010 · Viewed 20.5k times · Source

In Sql Server Management Studio once I browse a cube I can drop column fields, row fields and filter fields. This displays the required data.

I want to know if there is a way to view the MDX query being generated behind the scenes to display the data?

Thanks.

Answer

bobs picture bobs · Jul 23, 2010

SQL Server Profiler works on SSAS servers. Select Analysis Services for the Server type in the Connection dialog when initiating a Profiler connection. Select your Analysis Services server and connect. You can use the Standard Profiler template and start the trace. You should be able to see the MDX query that way.