简体   繁体   中英

Viewing SQL Server query from .NET application and from SSAS cube

I am working on an ASP.NET MVC app and the database is a SQL Server Analysis Services (SSAS) cube. This application was developed 3 years ago and there is no documentation - but it's working. However the application needs to change a lot now because of new requirements.

I am new to this field and I need to figure out the SQL query which is generated during the application at runtime. I tried to figure out by debugging but I am stuck. I could view the SQL query.

So, if anybody tells me the way to see the SQL query then I can easily debug and figure out the SQL query. Again I am telling you this is really new for me and I am struggling for the last two days to figure it out.

If you can share the way to get the actual SQL query, then it really helps me a lot!

Thanks

You can use SQL Profiler to connect to your Analysis Instance and see the query being executed.

You get access to the SQL Profiler by installing the SQL Managemt Tools. The queries being used are going to be either MDX or DAX queries depending on what type of Analysis Services you're using.

The Query Begin Event will show you the query being used.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM