SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


MDX with linked server


MDX with linked server

Author
Message
aarded
aarded
SSC-Enthusiastic
SSC-Enthusiastic (104 reputation)SSC-Enthusiastic (104 reputation)SSC-Enthusiastic (104 reputation)SSC-Enthusiastic (104 reputation)SSC-Enthusiastic (104 reputation)SSC-Enthusiastic (104 reputation)SSC-Enthusiastic (104 reputation)SSC-Enthusiastic (104 reputation)

Group: General Forum Members
Points: 104 Visits: 314
Hi,

I have an MDX query which executes within 7 seconds (Profiler 'Query End' - duration = 7288). The resultset contains +70000 rows, 17 columns, 8928 KB.

Within the SSMS MDXquery window, the execution is finished into the result window within less than 20 seconds.

I want to transform these results into a SQL stored procedure. So the application make use of a linked server to connect the OLAP server (@srvproduct=N'OLAP', @provider=N'MSOLAP', @datasrc=N'localhost'), and executes the MDX by making use of this linked server:
SET @SQL='SELECT * FROM OPENQUERY(OLAP_srv, '''+@MDX+''')'
EXEC sp_executeSQL @SQL

However when I execute the MDX from the OLTP engine, using the linked server, the profiler shows again 7 seconds for the 'Query End', but the result only returns after nearly 2 minutes. Also the profiler shows: 'Audit Logout' - Duration = 117577.

I have tried this from another OLTP server without noticeable difference.

Any idea what’s the reason? Is he losing so much time in transferring the results from OLAP to OLTP server? Is there any possibility to make this faster?

Thanks.
Eric.



aarded
aarded
SSC-Enthusiastic
SSC-Enthusiastic (104 reputation)SSC-Enthusiastic (104 reputation)SSC-Enthusiastic (104 reputation)SSC-Enthusiastic (104 reputation)SSC-Enthusiastic (104 reputation)SSC-Enthusiastic (104 reputation)SSC-Enthusiastic (104 reputation)SSC-Enthusiastic (104 reputation)

Group: General Forum Members
Points: 104 Visits: 314
It is faster with SQL2012.
Is it possible to download and install the MSOLAP version of SQL2012 on SQL2008R2?



Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search