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.
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
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.
To fix the MSOLEDB drivers issue, continue to install Visual C++ 32-bit (X86).
After installing both 32-bit and 64-bit of C++, restart the server then try installing MSOLEDB driver for SQL Server.
- Hit ‘Next‘ to continue with OLE DB installation
- Just hit ‘Finish‘ to complete installing OLE DB Driver 19 for SQL Server
- We have successfully installed Microsoft OLE DB Driver 19 for SQL Server.