如何将Excel文件导入SQL Server?

问题描述:

将Excel文件放入SQL Server表格的最快方式是什么?

What is the quickest way of getting my Excel file into a table in SQL Server?

a href =https://support.microsoft.com/en-in/kb/321686 =nofollow> OPENROWSET 在sql server中导入excel文件。

You can also use OPENROWSET to import excel file in sql server.

SELECT * INTO Your_Table FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0',
                        'Excel 12.0;Database=C:\temp\MySpreadsheet.xlsx',
                        'SELECT * FROM [Data$]')