Fix: MSOLEDB Driver 19 for SQL Server Installation Failure

We are getting an error while installing MSOLE DB driver 19 for SQL Server as it is looking for a ‘Microsoft Visual C++ Redistributable for Visual Studio 2022 ’, We can fix the MSOLEDB driver issue by following the below simple step-by-step procedure.

Fix_MSOLEDB_Driver_01

From the above error screenshot, we understand there is a dependency to install MSOLEDB driver for SQL Server, which is MS Visual C++ either 32-bit or 64-bit as per your system configuration.

In our case we are using 64-bit so I went ahead and downloaded Microsoft Visual C++ Redistributable 64-bit from the Microsoft website

Fix_MSOLEDB_Driver_02

After Installing Visual C++ Redistributable MSOLEDB Driver installation still failing:

Post installation of Visual C++ 64-bit OLE DB installation is still failing, tried many ways like repairing the installation as the installation is not being recognized by the MSOLEDB.

After many attempts we found MSOLEDB installation depends on both 32-bit and 64-bit Visual C++. Download both C++ setup files as below.

Fix_MSOLEDB_Driver_03

To fix the MSOLEDB drivers issue, continue to install Visual C++ 32-bit (X86).

Fix_MSOLEDB_Driver_04

After installing both 32-bit and 64-bit of C++, restart the server then try installing MSOLEDB driver for SQL Server.

Fix_MSOLEDB_Driver_05
  • Hit ‘Next‘ to continue with OLE DB installation
Fix_MSOLEDB_Driver_06
Fix_MSOLEDB_Driver_07
  • Just hit ‘Finish‘ to complete installing OLE DB Driver 19 for SQL Server
Fix_MSOLEDB_Driver_08
  • We have successfully installed Microsoft OLE DB Driver 19 for SQL Server. 

Leave a Reply