Solved

Use sql wizard to import excel table - sql server express 2016 to Excel 2015 (e3)

Posted on 2016-09-23
11
111 Views
Last Modified: 2016-09-27
I am trying to use the sql management studio import wizard to import some tables from excel.

I have SQL server express 2016 installed and Excel 2016 (e3) (see image of version below).

Everytime I try to import from excel I get the following error msg (see image below).

So far I have tried installing Microsoft Access Database Engine 2010 Redistributable after reading suggestions in blogs etc. (link to download below). However I am still getting the same error msg.

https://www.microsoft.com/en-gb/download/details.aspx?id=13255


Note: I am on a 64 bit system and I am using 64 bit verions of excel and sql.

sql error
0
Comment
Question by:mikes6058
  • 6
  • 5
11 Comments
 
LVL 12

Expert Comment

by:Nakul Vachhrajani
ID: 41812749
The DTExecUI is a 32-bit only utility. So, it will look for the 32-bit version of the driver, not 64-bit. Can you install the 32-bit version of the driver and try running your SSIS package again?

As an alternate, you can try running the DTExec (command-line) utility.
0
 

Author Comment

by:mikes6058
ID: 41812772
Sorry I'm not sure what you mean my the DTexecUi? Also what is the driver bit you want me to install.

Sorry for being an idiot - this is my first day using SQL

Thanks
Mike
0
 
LVL 12

Expert Comment

by:Nakul Vachhrajani
ID: 41812803
That's quite okay. No apologies necessary. The DTExecUI is the GUI-based
utility that you are using to execute your SSIS package to import Excel
data to SQL Server.

This utility is a 32-bit only utility. Hence, all components that it
uses have to be 32-bit. In your case, since your Office is 64-bit, it
does not have the necessary 32-bit components to read from your Excel file.

One sure shot way is to use a 32-bit version of Office. But since you
already have the 64-bit version of Office, your step to install
"Microsoft Access Database Engine 2010 Redistributable" was correct.
However, you need to use the 32-bit redistributable.

On the download page, you must have seen 2 executables:
1. AccessDatabaseEngine.exe
2. AccessDatabaseEngine_X64.exe

The "AccessDatabaseEngine.exe" (without the _x64 in the file name) is
the 32-bit version - which is what you need to download and install.

Once installed, try to import the data once again - hopefully, you
should be all set.
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 

Author Comment

by:mikes6058
ID: 41812863
Hi

Thank-you for elaborating but unfortunately this has not worked. I am getting the following error message when attempting to download the 32 bit option.

error.PNG
Could it have anything to do with the fact that the Microsoft Access Database Engine is a 2010 version and not 2016?

On the download page their are a set of instructions which specifically mentions earlier versions of excel but not 2016. See below.

instructions
0
 

Author Comment

by:mikes6058
ID: 41812868
Just so you are aware I cannot reinstall a 32 bit version of office as it does not perform as well as the 64
0
 
LVL 12

Expert Comment

by:Nakul Vachhrajani
ID: 41812904
Hmmm...okay. You must have two versions of "Import and Export Data" wizard on your machine. One of them must have the text "(64-bit)". Can you try to use that version of the Import and Export Data wizard?
0
 

Author Comment

by:mikes6058
ID: 41813164
You are right, there does appear to be a 32 and 64 bit "import export data" wizard. However I have done what you suggested and I am getting the same error msg as before (see below).

error-3.PNG
Mike
0
 
LVL 12

Accepted Solution

by:
Nakul Vachhrajani earned 500 total points
ID: 41813740
Thank-you for your patience. Office documents follow a common standard across various versions. Can you try using the 2007 Office System Driver? You can get it from here: http://www.microsoft.com/en-us/download/confirmation.aspx?id=23734

Our systems use 32-bit Office on 64-bit versions, so I am unable to test your scenario, however from the community it does look like the 64-bit Office drivers do not help in a lot of cases. The 2007 Office drivers have helped a lot of people.
0
 
LVL 12

Expert Comment

by:Nakul Vachhrajani
ID: 41813743
Oh, and when you select your source, do try to see if selecting an older Office version helps (e.g. Excel 2007 or 2013).
0
 

Author Comment

by:mikes6058
ID: 41817883
Bingo, it worked using 2007. Thanks for your perseverance Nakul!

Mike
0
 
LVL 12

Expert Comment

by:Nakul Vachhrajani
ID: 41818078
You're welcome! Glad I could be of help.
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question