Microsoft.ace.oledb.12.0 provider is not registered for VS 2022 and run64bitRuntime disabled

Anne 276 Reputation points
2024-03-15T21:53:36.26+00:00

I recently upgraded my sql server from 2019 to 2022.

And also start to use Visual studio 2022.

Because there is some excel destination or source file in the SSIS package,

I got some errors like Microsoft.ace.oledb.12.0 provider is not registered.

I see the VS is 64bit version, and in the configuration property-debugging- Run64bitRuntime is set to true, and you cannot change to false for VS 2022.

What should I do in order to run it in VS for SSIS package that has excel file source or destination in it?

Thanks,

SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,458 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Yitzhak Khabinsky 25,106 Reputation points
    2024-03-17T01:17:06.1133333+00:00

    Hi @Anne,

    As you correctly wrote in your question, the VS2022 is a 64-bit application. As such, it can use 64-bit drivers only. Including Microsoft ACE OLEDB Provider drivers (12.0, 15.0, or 16.0). All of them could be installed in parallel.

    It is very easy to check what OLEDB drivers are installed via a .udl file.

    Here is how to do it:

    1. Create a text file on the file system with the extension .udl
    2. Right mouse click on it, and select Properties option.
    3. Click on the Provider tab, and you will see all 64-bit OLEDB drivers that are installed on your machine. Please see below what to expect. The screen shot shows that two versions of the 64-bit Microsoft ACE OLEDB Provider drivers (Microsoft Office 12.0/16.0 Access Database Engine OLE DB Provider) are installed: 12.0 and 16.0
    4. If needed 64-bit OLEDB driver is not enlisted, you just need to download and install it.

    Download links:

    UDL 2024-03-16 210350

    2 people found this answer helpful.

  2. Greg Low 1,495 Reputation points Microsoft Regional Director
    2024-03-15T23:24:52.23+00:00

    Can you change the references to Microsoft.ACE.OLEDB.16.0 instead? (And of course, make sure it's installed first).

    1 person found this answer helpful.
    0 comments No comments

  3. Olaf Helper 40,901 Reputation points
    2024-03-16T07:15:23.2233333+00:00

    If you want to use the ACE data provider, you have to install it.

    Microsoft Access Database Engine 2016 Redistributable

    1 person found this answer helpful.
    0 comments No comments

  4. ZoeHui-MSFT 33,126 Reputation points
    2024-03-19T02:01:31.4533333+00:00

    Hi @Anne,

    Please try to install both 32bit and 64bit Microsoft Office.

    Check How to install 64-bit Microsoft Access database engine alongside 32-bit Microsoft Office

    Regards,

    Zoe Hui


    If the answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments