//
you're reading...
SQL Server

Creating a Linked Server for Analysis Services

 

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
    1. Go to \Program Files\Microsoft Analysis Services\AS OLEDB\130.

    2. 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
    1. Go to C:\Windows\Assembly

    2. Right-click Microsoft.AnalysisServices.AdomdClient and click Properties. Click Version.

      For AMO, right-click Microsoft.AnalysisServices.

  • Data source: (the name of your server)
  • Catalog: (the name of the Analysis Services database)

image

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]’)

 

Where to get newer version data providers


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
  1. Go to the Microsoft download center.

  2. Expand Install Instructions.

  3. 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.

Bon Apetit!

ldix30

Advertisements

About ldgaller

Accomplished Data Warehouse Architect, DBA and Software Architect with over 15 years of professional experience and demonstrated success designing and implementing solutions that improve business functionality and productivity. Highly diverse technical background with proven ability to design, develop and implement technology on an enterprise level. I approach all projects with passion, diligence, integrity, and exceptional aptitude.

Discussion

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: