Search code examples
c#.netssas

Microsoft.AnalysisServices.AdomdClient namespace missing Server class?


I've added a reference to Microsoft.AnalysisServices.AdomdClient to my C# project in hopes that I can automate some OLAP Cube processing. All of the example code to instantiate a server connection looks something like this:

using Microsoft.AnalysisServices.AdomdClient;

Server OLAPServer = new Server();

But if I use the above code, I receive the following error:

Cannot resolve the symbol Server

What is the issue? Below is the reference that I've added.

enter image description here


Solution

  • Server is in the Microsoft.AnalysisServices namespace, in Microsoft.AnalysisServices.dll

    This DLL is located in

    C:\Program Files (x86)\Microsoft SQL Server\%VERSION%\SDK\Assemblies\Microsoft.AnalysisServices.dll