To set up a linked server for Analysis Services, follow these steps:
Connect to the Database Engine in Management Studio.
Expand Server Objects, right-click Linked Servers, and click New Linked Server.
Define a name for the linked server, and set the following options as shown in the screenshot below:
- Provider: Microsoft OLE DB Provider for Analysis Services 10.0
- Product name: MSOLAP.4
Find the file version of the OLEDB provider
Go to \Program Files\Microsoft Analysis Services\AS OLEDB\130.
Right-click msolap130.dll and click Properties.
If you cannot find the file at this location, or if the folder path includes AS OLEDB\110 or AS OLEDB\90, you are using an older library and must now install a newer version (AS OLEDB\11) to connect to SQL Server 2016.
Find the file version of ADOMD.NET and AMO
Go to C:\Windows\Assembly
Right-click Microsoft.AnalysisServices.AdomdClient and click Properties. Click Version.
For AMO, right-click Microsoft.AnalysisServices.
To test the linked server, you can write a query like this:
select * from openquery(AdventureWorksOLAP, ‘select [Measures].[Sales Amount] on columns from [Adventure Works]’)
The version installed on the client computer should match the major version of the server providing the data. If the server installation is newer than the data providers installed on the workstations in your network, you might need to install newer libraries.
Find the data providers on the download site
Go to the Microsoft download center.
Expand Install Instructions.
Scroll down to the section containing Analysis Services components. ADOMD.NET, the OLE DB provider, and AMO are second, third, and fourth in the list. Each library is available in 32-bit or 64-bit versions. Servers and newer workstations running a 64-bit operating system will require the 64-bit version.