Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

MDX with linked server Expand / Collapse
Author
Message
Posted Tuesday, November 5, 2013 1:33 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Monday, December 15, 2014 2:33 AM
Points: 40, Visits: 307
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.



Post #1511394
Posted Tuesday, December 17, 2013 9:22 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Monday, December 15, 2014 2:33 AM
Points: 40, Visits: 307
It is faster with SQL2012.
Is it possible to download and install the MSOLAP version of SQL2012 on SQL2008R2?



Post #1523765
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse