SQL+MDX in one Apartment (Hybrid Query).

Who is online?  1103 guests and 0 members
home  »  blogs  »  suhas kudekar  »  SQL+MDX in one Apartment (Hybrid Query).
  Rate This Blog Entry:  register  or  login

Author

suhas suhas kudekar (Member since: 4/16/2012 1:53:42 PM)
Recived microsoft community contributor award 2012. https://www.microsoftcommunitycontributor.com/logon.aspx

View suhas kudekar 's profile

Comments (4)

raunak.jhawar
5/25/2012 10:12:05 AM Raunak Jhawar said:

Excellent article Suhas. One fine edit required. You need to change the alias that you have used for Sales Channel. Currently the alias used is "Date"

by
suhas
5/25/2012 11:43:19 AM suhas kudekar said:

 Thanks Raunak for you point...!!!Wink

by
user290442
5/29/2012 6:33:27 PM Anish Tuladhar said:

I found this simplest of all(Using OpenRowSet):

SELECT * 
INTO zzz_temp_table
FROM OPENROWSET('MSOLAP','DATASOURCE=OLAPServername;Initial Catalog=Cube1_DEV;',
'MDX Query here' )
http://www.bidn.com/blogs/artuladhar/ssas/2719/dump-mdx-olap-query-output-to-a-relational-table-from-ssms
Thank you,
Anish

by
marc_jellinek
7/16/2012 2:35:17 AM Marc Jellinek said:

Another option, which gives you a finer degree of control, is to create a table-typed SQLCLR function.  By parsing the parameters supplied to the function and generating an MDX query, one can easily parameterize MDX.  The downside is the result set is fixed in terms of columns (names, datatypes, etc).  When I need more flexibility, I'll have the SQLCLR function return XML, for further parsing.

by

Leave a comment


 
Type the characters:
 *
 
   

Training on Microsoft Products & Technologies

Email Subscriptions

   Get the Most Recent Blogs in your inbox
Blogs RSS Feed

suhas kudekar's latest blog posts

  • In Excel 2013, much of that functionality, including the infrastructure that supports it, is built directly into the Data Model in Excel. Without installing a separate add-in, PowerPivot and ower View...
  • SQL Azure Reporting SQL Azure Reporting enables developers to enhance their applications by embedding cloud based reports on information stored in a SQL Azure database. Developers can author reports u...
  • To get a comma separated list in SQL as well as in MDX use below queries. 1 – SQL Select Name from Sales.SalesReason GO Select Name from Sales.SalesReason SELECT SUBSTRING ( ( SELECT ‘,&rs...
  • Why we need to change the Look & Feel of the Report Manager? Ans- If we have different environments to deploy the reports like QA, DEV, PROD. that time User/Developer can get the more idea once op...
  • While replying on the MSDN Forums Most of the time people ask on how to write SQL+MDX both in single place means. 1- Certain data like aggregated data from MDX Query. 2- Select that data from SQL Quer...
  • Once you will installed SQL Server 2012 you could not find the BIDS to develop SSAS/SSIS/SSRS application. BIDS will replace with SSDT i.e. SQL Server Data Tools. Comparison of SQL Server 2012 Vs SQL ...
  • VertiPaq engine is currently only available to PowerPivot for Excel in SQL Server 2008 R2. After the amazing success of PowerPivot for Excel in the previous release of SQL Server 2008 R2 this engine m...
Blogs RSS Feed

Latest community blog posts

  • A few days back I was resolving a memory issue which caused sql server to stop responding. I was able to figure out the issue by looking into DBCC MemoryStatus output. It was the full text search whic...
  • This is an update to the DB-Migrate ( http://www.sqlservergeeks.com/blogs/AhmadOsama/personal/797/db-migrate-a-powershell-module-to-migrate-databases ) powershell module to migrate database between sq...
  • This blog is part of the series The TSQL Classes: Stored Procedure The links to previous post are given below. http://sqlservergeeks.com/blogs/AhmadOsama/personal/762/the-tsql-classes-stored-procedure...
  • Reporting With SSRS Part 1 : In this serires of blogs, i will try to introduce you with some of the key features of the tool which will help you get on board to become a proficient report developer.If...
  • Hi Folks, I am sure that all of you would be aware about the role of Identity column in a table, i.e., it is column which keeps on incrementing without supplying the value explicitly during insertion....
  • Recently I wrote powershell scripts to move databases, logins and SQL Agent Jobs between instances. Another one I wrote was to fix orphan users. I have now combined all of these different functions in...
  • Hi SQL Geeks, Here are the blog posts by Ahmad Osama for the month of April. We would expect more of his informative blogs this month. Happy Learning! If you like our blogs do like us on Facebook at h...
  • This blog is part of the series The TSQL Classes: Stored Procedure The link to previous post are given below. http://sqlservergeeks.com/blogs/AhmadOsama/personal/762/the-tsql-classes-stored-procedures...
  • As DBAs we are always challenged of unexpected size growth of log or data files and need to shrink files based on available free space in each file. Most of the times we are stuck and do a lot of scri...
  • One of the major migration activities is to fix orphan users. Though, it can be easily fixed by sp_change_users_login procedure, however what if you need to do this for multiple servers. A powershell ...
  • This blog is part of the series The TSQL Classes: Stored Procedure. http://www.sqlservergeeks.com/blogs/AhmadOsama/personal/764/the-tsql-classes-stored-procedures-nested-proc-recursion-and-plan-cachin...