ACE.OLE.DB issue importing to SQL Server 2019

2023-02-28T04:42:39.18+00:00

After I installed Office 2016 I lost the ability to successfully import Excel files using Import/Export wizard in SQL Server 2019. Able to import Flat files.

Microsoft ODBC Driver 17 for SQL Server and Microsoft ODBC Driver 19 for SQL Server are installed.

Microsoft Access database engine 2010 32bit installed. I deleted and then reinstalled Microsoft Access databased engine 2016 from the cmd line: with /quiet

There is an ACE.OLEDB.12.0 and and ACE.OLEDB.16.0 on my machine. I've selected different versions of Excel. That does not resolved the issue.

User's image

Can you assist with this issue?

SQL Server | Other
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Seeya Xi-MSFT 16,671 Reputation points
    2023-02-28T07:30:49.34+00:00

    Hi @Michel Weaver (Getting to Green LLC),

    Please refer to this similar thread:

     https://learn.microsoft.com/en-us/answers/questions/737285/how-to-fix-microsoft-ace-oledb-12-0-provider-is-no

    If this thread does not give you help, you can register the ACE.OLEDB.12.0 provider manually. Open the Command Prompt as an administrator and run the following command:

    regsvr32 "C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE16\ACEOLEDB.DLL"

    Ensure that you replace the file path with the correct path to the ACEOLEDB.DLL file on your machine.

    Best regards,

    Seeya


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".


  2. Michel Weaver (Getting to Green LLC) 0 Reputation points
    2023-03-02T03:18:39.7733333+00:00

    Is there a way to resolve the main issue that I seem to be having with OLEDB? It is very helpful for us to have this option. I tried importing through Visual Studio and received the following error. I ran what you sent before as an admin so not sure why these are not registered?

    User's image

    User's image

    Imported the file as .csv but am having issue with a datetype data type. In the SQL Server Import and Export Wizard Advanced view a column RequestDate is added as date [DT_DATE]. The destination type is datetype. Below is the error. Thanks for the help!

    User's image

    0 comments No comments

  3. ZoeHui-MSFT 41,536 Reputation points
    2023-03-02T05:54:20.8733333+00:00

    Hi @Michel Weaver (Getting to Green LLC)

    User's image

    From the error message, please try to run the package via 64bit model.

    In the Project Properties of an Integration Services package, you need to select 64-bit execution by setting the value of the Run64BitRuntime property to true on the Debugging page as shown below.

    User's image

    Regards,

    Zoe Hui


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

    0 comments No comments

  4. Michel Weaver (Getting to Green LLC) 0 Reputation points
    2023-03-02T17:57:51.75+00:00

    Run64BitRuntime was set to True.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.