Follow

Error: "Could not load file or assembly 'Microsoft.SqlServer.ConnectionInfo..."

Symptoms

You receive the following error:

Could not load file or assembly 'Microsoft.SqlServer.ConnectionInfo[...]

Cause

You have not installed the SQL Shared Management Objects (SMO). They are needed to create tables and other SQL objects from TX.

Resolution

Download the SQL Shared Management Objects from the SQL Server Feature Packages and install it. The download sites are linked below - the file you need is called SharedManagementObjects.msi.

Please be aware that if you are using another version of SQL server, you must find the right version of the feature packages.

Notes

If you are deploying to multiple versions of SQL Server, you must install all the relevant versions of SMO/XMO. For example, if staging is SQL 2008 and Data Warehouse is SQL 2012, you must install both of these files.

SQL Native Client is a pre-requisite and will in most cases need to be installed first.

In some cases, you will also need to install the Analysis Management Objects package to resolve this error.

Was this article helpful?
2 out of 2 found this helpful
Have more questions? Submit a request

3 Comments

  • 0
    Avatar
    Zheng Li
  • 0
    Avatar
    Stuart Cuthbertson

    The link above for SQL Server 2017 states:

    "Beginning with SQL Server 2017 SMO is distributed as the Microsoft.SqlServer.SqlManagementObjects NuGet package to allow users to develop applications with SMO.

    This is a replacement for SharedManagementObjects.msi, which was previously released as part of the SQL Feature Pack for each release of SQL Server. Applications that use SMO should be updated to use the NuGet package instead and will be responsible for ensuring the binaries are installed with the application being developed."

     

    Can I interpret this to mean that TimeXtender are, or will soon, be bundling SMO with the Discovery Hub software, so we won't need to install it ourselves to use Discovery Hub when deploying to SS2017 instances? 

    (I am still on a slightly older version of Discovery Hub so can't test with your latest release yet.)

  • 1
    Avatar
    Radek Buczkowski

    It is correct that that starting with SQL Server 2017 the SMO DLLs are bundled with Discovery Hub, so you no longer need to install additional DLLs. The article only applies to SQL Server 2005, 2008, 2012, 2014, and 2016.

Please sign in to leave a comment.