Client Libraries used for Analysis Services connections

Analysis Services provides three client libraries for accessing server operations and Analysis Services data. All applications connecting to Analysis Services do so using one of the libraries described in this topic. In organizations that run multiple versions of Analysis Services, you might need to install more recent versions of the client libraries on user workstations connecting to Analysis Services data.

Connections to newer versions of Analysis Services require the client libraries from the same major release. For example, to connect to SQL Server 2012 Analysis Services (SSAS), each workstation must have a client library from the 2012 release. Although Excel installs the client libraries it needs to connect, the library it provides is often out of date relative to the Analysis Services instances you are using.

This topic contains the following section:

Determine server version

Determine the version of the Analysis Services client libraries on a workstation

Where to get newer version client libraries

About Analysis Services OLE DB Provider (MSOLAP DLL

About ADOMD.NET

About Analysis Services Management Objects (AMO)

How to determine server version

Knowing the version of the Analysis Services instance will help you determine whether you need to install newer versions of the client libraries on workstations in your organization.

  • In SQL Server Management Studio, connect to the Analysis Services instance. Right-click the instance you want to check, point to Reports, and click General. Edition and version build information appears in the report.

The major build number of the initial release of SQL Server 2012 is 11.00.2100.60.

For more information about getting version and build information, see How to determine the version and edition of SQL Server and its components.

How to determine client library version on a workstation

Client libraries are installed with Analysis Services, as well as by client applications that routinely connect to Analysis Services databases, such as Excel.

Office 2007 installs client libraries from SQL Server 2005. Office 2010 installs client libraries from SQL Server 2008. Office 2013 installs client libraries from SQL Server 2012. If you are using multiple versions of Office or SQL Server, and connections or feature availability are not what you expect, you might need to install newer versions of the client libraries. You can run multiple major versions of each client library side by side on the same computer.

Find the file version of the OLEDB provider

  1. Go to \Program Files\Microsoft Analysis Services\AS OLEDB\11.

  2. Right-click msolap110.dll and click Properties.

    OLEDB provider file version dialog box

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

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.

    ADOMD.NET File version dialog box

For more information about version and build numbers by release, see SQL Server Builds on Blogspot.

Where to get newer version client libraries

The version installed on the client computer should match the version of the server providing the data. If the server installation is newer than the client libraries installed on the workstations in your network, you might need to install newer libraries.

Find the client libraries 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.

Analysis Services OLE DB Provider

Analysis Services OLE DB Provider is the native provider for Analysis Services database connections. MSOLAP is used indirectly by both ADOMD.NET and AMO, delegating connection requests to the data provider. You can also call the OLE DB provider directly from application code, which you might do if solution requirements preclude the use of a managed API.

The Analysis Services OLE DB provider is installed automatically by SQL Server Setup, Excel, and other applications that are frequently used to access Analysis Services databases. You can also install it manually by downloading it from the download center. By default, the provider can be found in the \Program Files\Microsoft Analysis Services folder. The provider must be installed on any workstation used to access Analysis Services data.

MSOLAP110.dll is the version of the Analysis Services OLE DB provider that ships in SQL Server 2012. Other recent previous versions include MSOLAP10.dll (for SQL Server 2008 and 2008 R2) and MSOLAP90.dll (for SQL Server 2005).

OLE DB providers are often specified on connection strings. An Analysis Services connection string uses a different nomenclature to refer to the OLE DB provider: MSOLAP.<version>.dll

MSOLAP.5.dll is the current Analysis Services OLE DB provider installed with Excel 2013. Previous versions, such as MSOLAP.4.dll or MSOLAP.3.dll, are often found on workstations running older versions of Excel. Some Analysis Services features, such as the PowerPivot add-in, require specific versions of the OLE DB provider. See Connection String Properties (Analysis Services) for more information.

ADOMD.NET

ADOMD.NET is a managed client library used for querying Analysis Services data. Excel uses ADOMD.NET when connecting to a specific Analysis Services cube. The connection string you see in Excel is for an ADOMD.NET connection.

ADOMD.NET is installed by SQL Server Setup and used by SQL Server client applications to connect to Analysis Services. Office installs this library to support data connections from Excel. As with other client libraries included in SQL Server, you can redistribute ADOMD.NET if you are using the library in custom code. You can also download and install it manually to get the newer version (see Updating client libraries on workstation computers in this topic).

To check file version information, look for ADOMD.NET in the global assembly cache, where it is listed as Microsoft.AnalysisServices.AdomdClient.

When connecting to a database, the connection string properties for all three libraries are largely the same. Almost any connection string you define for ADOMD.NET (ConnectionString) will also work for AMO and the Analysis Services OLE DB provider. See Connection String Properties (Analysis Services) for more information.

For more information about connecting programmatically, see Establishing Connections in ADOMD.NET.

AMO

AMO is a managed client library used for server administration and data definition. For example, SQL Server Management Studio uses AMO to connect to Analysis Services.

AMO is installed by SQL Server Setup and used by SQL Server client applications to connect to Analysis Services. You can also download and install it manually when using AMO in custom code (see Updating client libraries on workstation computers in this topic). AMO can be found in the global assembly cache, as Microsoft.AnalysisServices.

A connection using AMO is typically minimal, consisting of “data source=<servername>”. After a connection is established, you use the API to work with database collections and major objects. Both SSDT and SSMS use AMO to connect to an Analysis Services instance.

For more information about connecting programmatically, see Programming AMO Fundamental Objects.

See Also

Concepts

Connect to Analysis Services