I have an excel file reading some data from an OLAP service. The query was constructed using the GUI. How can I obtain the corresponding MDX or SQL query that excel actually communicates to the OLAP server?
You can do it through SQL server profiler. Just run the profiler on Analysis Services and run/refresh your query in Excel and you will see the MDX query in the profiler.
Right click on your pivot table -> Tools -> Show Mdx
Related
So I have a DAX query that I have built in SSAS. But since my application like DAX, I thought pushing the set of DAX results to a database server table would be the ideal solution for my application to read.
How do I output the contents of a DAX query to a SQL Server database table? And if possible truncate the contents of the table before each run?
I'm using SQL Server 2016 if that helps.
I got around this by using a linked server to output the contents of an 'open query' to a table variable in SQL.
We can use SQL Server link between POWER BI and SQL server to make SQL Query on a database. But If I only have CSV file how can I request some information WITH SQL QUERY. In fact we can import CSV file and (I suppose) do some query with the POWER QUERY(it's DAX language I think), but I don't want to use DAX I want to use SQL QUERY like requesting data from SQL Server.
Example of query with SQL Server: = Sql.Database("LAPTOP-P3DH07C9", "Projet Big Data", [Query="SELECT * FROM MatchComplete"])
Is it possible or I must use DAX ?
I am not sure if this is possible but I have a very large data set (extracted using Microsoft SQL Server Management Studio) and would like to import this into some sort of cube (OLAP?) to be analysed in Microsoft Excel (Pivot tables etc.) which is of course limited by c.1 million lines.
Ideally I would to run a query from management studio directly into a cube which is then accessed via Excel.
Thanks in advance.
You can create a Pivot Table using an external data.
Then you can give the SQL Server as a source and it would not matter that the source is with more than 1 million rows:
My current system supports Sql Query. We are integrating our application with another application which generates the Mdx query from UI based on user selection. During the integration, we need to process this Mdx query and convert into Sql query so that we can use existing api to execute and process the query results.
I am looking for an api which converts Mdx query to Sql query.
Appreciate your help on providing details on this.
I got some crystal reports, these are developed by someone but now I am migrating to SSRS. So when i go to 'show SQL query' from crystal reports it is showing some query but i can't understand properly where these columns coming from. Is there anyway to know exact SQL query so that i can use it in sql server to generate data sets for SSRS.
thanks
You can run Sql Profiler against your database server to see the exact Sql that Crystal Reports is running to generate the report.
Sql Profiler is a tool that comes with Sql Server (under Performance Tools in your Sql Server programs) that shows every Sql statement hitting the database. Run a trace on your Sql Server through Sql Profiler then run your report and Sql Profiler will show you the exact Sql statements that your Crystal report is running against the database.
One option would be split the query manully and see the select and where clause using or if you have access to database run the query over the database to check what all columns it is returning