[Company Logo Image] 

Home Up Contents Coffee Break Credits Glossary Links Search

 
SQL Server Error OLE DB Driver msoledbsql.msi

 

 

Home
Analysis Services
Azure
CLR Integration
High Availability
Open Source
Security
SQL Server 2008
SQL Server 2012
SQL Server 2014
SQL Server 2016
SQL Server 2017
SQL Server 2019
Tips
Troubleshooting
Tuning

SQL Server Error OLE DB Driver msoledbsql.msi.


Applies to: Microsoft SQL Server 2022.

Date created: October 4, 2025.
 

Problem Description.
 

When attempting to upgrade SQL Server 2017 to SQL Server 2022, SQL Server setup may fail with an error indicating it cannot locate msoledbsql.msi (Microsoft OLE DB Driver for SQL Server). The installer stops, leaving the upgrade incomplete. This usually occurs on systems where multiple versions of SQL Server drivers are installed, including older backward compatibility components.
 

Cause.

This issue often arises from conflicts between installed versions of Microsoft ODBC Driver for SQL Server and/or Microsoft OLE DB Driver for SQL Server. During the SQL Server setup, the installer attempts to reference existing driver packages, but due to mismatched or conflicting versions, it fails to locate the required installation file.

Usually the error displayed by SQL Server setup looks like the image below:

 

 

Workaround / Solution

The workaround is to remove all installed versions of the SQL Server ODBC drivers before running the upgrade:

  1. Open Control Panel go to Programs and Features.

  2. Uninstall all versions of Microsoft ODBC Driver for SQL Server.
    bullet

    You may also remove OLE DB drivers if problems persist.

  3. Reboot the server.

  4. Run the SQL Server 2022 setup again.
    bullet

    The installation should now proceed without errors.

  5. After the SQL Server upgrade completes successfully, reinstall the latest versions of the ODBC and OLE DB drivers as needed.

This approach has been confirmed to resolve the issue by other users. Removing conflicting drivers clears the setup path, allowing the installer to proceed correctly.

 

 

 

.Send mail to webmaster@sqlcoffee.com with questions or comments about this web site.