I cannot import excel documents into SQL Server Management Studio.

Jake Gray 30 Reputation points
2023-02-15T20:38:06.5066667+00:00

It wont let me upload screenshots for some reason but I open SSMS,

I create a database

I try to import an Excel document into SSMS by right clicking the database, selecting Tasks, and import Excel.. . I then select my excel worksheet document and try to upload when I receive this error:

TITLE: SQL Server Import and Export Wizard

The 'Microsoft.ACE.OLEDB.16.0' provider is not registered on the local machine. (System.Data)

So I went online and possible troubleshooting solutions are to download the Microsoft Access 2016 or 2013 or 2010 versions and the 32 or 64 or 84 bit versions and I tried individually with every single version with no change.

I saw that I should use the Microsoft SQL Server Import Export tool 64 bit from the start menu and when I try to import that way, I get the following Error Message:

TITLE: SQL Server Import and Export Wizard

ADDITIONAL INFORMATION:

Could not load file or assembly 'Microsoft.DataTransformationServices.ScaleHelper, Version=16.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified. (DTSWizard)

SQL Server Other
{count} vote

Accepted answer
  1. Yitzhak Khabinsky 26,586 Reputation points
    2023-02-15T21:32:04.62+00:00

    Hi @Jake Gray,

    Let's start with checking what Microsoft ACE OLEDB provider 64-bit edition is installed. Please issue the following commands in the SSMS:

    EXEC master.sys.sp_enum_oledb_providers;
    
    SELECT @@VERSION;
    

    And share the outcome.

    You should see MS ACE OLEDB Providers installed like below.

    Microsoft ACE providers

    Please try the following in SSMS, obviously adjusting both (1) your MS Excel fully qualified file name, and (2) Excel sheet name:

    SELECT *
    FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0',
       'Excel 12.0 Xml; HDR=NO; IMEX=1;
        Database=x:\<fully qualified path>\fafa.xlsx',
        [Sheet1$]);
    
    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Seeya Xi-MSFT 16,586 Reputation points
    2023-02-16T07:08:46.7866667+00:00

    Hi @Jake Gray ,

    Please refer to this similar thread:

    https://techcommunity.microsoft.com/t5/sql-server/sql-server-import-and-export-wizard/m-p/3718957

    The solution mentioned is to install "integration services".

    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".


Your answer

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