How to import an .xlsx file into a SQL Server database on MacOS?

Multi tool use
Multi tool use


How to import an .xlsx file into a SQL Server database on MacOS?



I've set up an SQL server using Docker on MacOS computer. I've also installed SQL Operations Studio as a GUI.



In SQL Operations Studio I'm trying to import list "Data" from a multiple-sheet AllData.xlsx file into a newly created table "Data_test" in my database "TestDB" using this chunk of code:


USE TestDB;
GO
SELECT * INTO Data_test
FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0',
'Excel 12.0; Database=/Users/user_name/Desktop/AllData.xlsx', [Data$]);
GO



I am getting an error like this:


"The OLE DB provider "Microsoft.ACE.ODBC.12.0" has not been registered."



Is there any way to solve this issue?



A question like this has already been attempted to answer by this link. It is advised to use ODBC instead of OLEDB, but the link given in the answer refers to importing into Excel from a database, which is the opposite of what I'm trying to do.



Overall, I'm looking for some way to import .xlsx files into a SQL server databases on Mac without using Windows. I would switch from SQL Operation Studio if it solves the issue.





It's doubtful. OLE DB depends on automation, which is based on ActiveX, which is a Windows only technology.
– Ken White
Jul 1 at 5:23





Here it is advised to use ODBC instead of OLEDB. Can it possibly help?
– andreyl_look
Jul 1 at 14:35





Yes, ODBC is cross-platform, so you can probably find a driver for Access.
– Ken White
Jul 1 at 23:34









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

C72dJR7ZMZf1fba2 f 1HlMN8,0TLDRZLJ1tx4Y1,eUf216QG3k,7sd ETPSbuLnXUWLUYJTlBxO,i
d0YVYvtASLDoyueB,TTUd wywk3f 0oF,o

Popular posts from this blog

PySpark - SparkContext: Error initializing SparkContext File does not exist

django NoReverseMatch Exception

List of Kim Possible characters