P
P
Pavel2018-01-25 14:46:48
C++ / C#
Pavel, 2018-01-25 14:46:48

How to get an instance of a cube class that is already deployed on the server?

There is an unfolded cube. The task to receive to what roles what measures are attached. You can connect to the cube through Microsoft.AnalysisServices.AdomdClient, but there are no roles anywhere. I saw the roles in the example , but a different class is used there. Is there any way to get an instance of the current cube in the form of the Microsoft.AnalysisServices.CubeCollection class? CubeCollection in AnalysisServices namespace not converting from AdomdClient namespace

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel, 2018-01-25
@rusbaron

I finally found it, and because there is another signer, I will answer

using Microsoft.AnalysisServices;
using Microsoft.AnalysisServices.Hosting;

Server OLAPServer = new Server();
OLAPServer.Connect(olapConnection);

where olapConnection is the connection string.
And the Microsoft.AnalysisServices.AdomdClient namespace can already be abandoned. The classes don't seem to convert to each other.
Original

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question