Question

I would like to add AdomdClient Reference to a C# Project, but it is not in the reference list. The Client is listed in the assembly Folder C:\Windows\assembly.

On the machine is SQL Server 2012 installed.

Était-ce utile?

La solution 2

If you need it in your solution, and you know the location (as you indicated, in c:\windows\assembly), right click your References node in the solution explorer in Visual Studio, then click "Add Reference." Click the "Browse" button, find your DLL file, and click "Add" in the dialogue box. It should show up checked in your reference list. You should then be able to reference it in your C# file.

If you don't have the ADOMD client DLL file handy, download it from the Microsoft SQL Server 2012 Feature Pack (http://www.microsoft.com/en-us/download/details.aspx?id=29065). Click "install instructions" and look for "Microsoft® SQL Server® 2012 ADOMD.NET"

Autres conseils

You can also install it from NuGet.

Run the following command in the Package Manager Console:

Install-Package Microsoft.AnalysisServices.AdomdClient

Microsoft.AnalysisServices.AdomdClient is deprecated and should not be used according to the NuGet page.

The following package worked for me:

Install-Package Unofficial.Microsoft.AnalysisServices.AdomdClient

On my computer, I can find the reference for SQL Server 2008 at

c:\Program Files (x86)\Microsoft SQL Server\100\DTS\PipelineComponents\Microsoft.AnalysisServices.AdomdClient.dll

For SQL Server 2012, I would assume the version (directory "100") would be higher, probably "110". The location is a bit strange, as it is meant for Integration Services data flow components, but I just checked another computer having SQL Server 2008 installed, and it has the file at the same location.

The solution is at here.

1) To add Microsoft.AnalysisServices.dll Browse to C:\Program Files (x86)\Microsoft SQL Server\100\SDK\Assemblies\Microsoft.AnalysisServices.dll

2) To add Microsoft.AnalysisServices.AdomdClient Browse to C:\Program Files\Microsoft.NET\ADOMD.NET\100\Microsoft.AnalysisServices.AdomdClient.dll

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top