For the last six years it has been part of my job to import data from Excel workbooks into MS SQL Server. I would open Microsoft SQL Server Management Studio (it says it is version 18.12.1) and then use the Object Explorer (a floating window of MS SQL Server Mgmt Studio). In Object Explorer I’d locate the database on the list, right-click it, select the Tasks submenu and pick “Import Data”, navigate to the appropriate Excel file, then confirm which columns go into what and let it do its thing.
About 2 weeks ago, IT replaced all the Windows 10 boxes with Windows 11 boxes on our floor. Now I can’t import Excel files into SQL.
After picking the Excel file and hitting the “Next” button I get this error:
I did some searching online using that exact error message text and found several hits with similar problem descriptions, so it’s not just me. Found people who claimed to have figured the problem out, too – they’re saying the Import Wizard of SQL Server is 32 bit and its a 32-bit vs 64-bit problem.
another such link:
I don’t have the necessary privileges to install diddly squat on this machine, so I have to tell the IT Department what they need to install. Our IT Department is umm, not ideal. They did open a ticket for this issue and they reinstalled the 64 bit driver (they left it behind in C:\Temp, files named AccessDatabaseEngine.exe and AccessDatabaseEngine_X64.exe).
I watched as they installed the 64 bit variant, and on a later return they also tried installing the 32 bit version only to get error messages that it would conflict with the 64 bit Microsoft Office installation. They basically shrugged, then, and closed the ticket and said they’d done all they could do.
On one of the linked pages of answers and other people complaining about this, I encountered someone claiming that there exists a 64 bit version of the Import Wizard. And that it is the default 32-bit version that is causing the problem. I tried following their description of where to invoke the 64 bit version but don’t seem to have any such animal installed on my computer.
That seems like a hopeful sign though: if I could find out more about this alleged 64 bit Import Wizard, I could tell IT what it is officially called, where they would find it, and request that they install it for me.
Anyone with relevant info?
Option Two is to save the Excel files as .csv or tab-delimited text, since the Import Wizard can also import from a flat file format (it recognizes either of those two). But I can’t figure out how to bypass or fix the “mismatched data type” complaint that pops up when I attempt import. The text file format data is perceived as text data in places where the destination columns in SQL are integer numerical.