通过SQL语句查询Excel表的数据,
SELECT * --INTO #productlist
FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0',
'Excel 12.0 Xml;HDR=YES;Database=D:\1.xlsx',
'SELECT * FROM [sheet1$]');
报错:
Msg 7438, Level 16, State 1, Line 2
The 32-bit OLE DB provider "Microsoft.ACE.OLEDB.12.0" cannot be loaded in-process on a 64-bit SQL Server.
应如何解决?
------解决思路----------------------
不行时,可能需要安装64位的Office