Quantcast
Channel: SQL Server Analysis Services forum
Viewing all articles
Browse latest Browse all 14337

MSOALP openquery slower on local than on another server

$
0
0

Hi,

We are using SQL server 2008R2 64bit.

I have an MDX query which executes within 7 seconds (Profiler 'Query End' - duration = 7288) by using the SSMS MDXquery window. The resultset contains +70000 rows, and is finished into the result window within less than 20 seconds.

I want to transform these results into a SQL stored procedure. So I use a linked server to connect the OLAP server (@srvproduct=N'OLAP', @provider=N'MSOLAP', @datasrc=N'localhost'), and execute the MDX by making use of this linked server:

SET @SQL='SELECT * FROM OPENQUERY(OLAP_srv, '''+REPLACE(@MDX,'''','''''')+''')'

EXEC sp_executeSQL @SQL

However when I execute the MDX from the 'local' OLTP engine, the profiler (SSAS side) 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 ms.

I have tried this from another OLTP server and on that server it returns within 1 minute.

When I look with the profiler (SQL side), it are the 'OLEDB DataRead' events which are slower.

OPENQUERY and OPENROWSET have the same results.

Any idea what’s the reason? Why is it slower on the local SQL server, from local OLAP to local OLTP?

Thanks.

Eric.


Viewing all articles
Browse latest Browse all 14337

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>