虽然从2010年的Excel数据导入SQL Server 2012中我收到以下错误:进口2007的Excel数据到SQL Server 2012
Msg 7399, Level 16, State 1, Line 1 The OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)" reported an error. The provider did not give any information about the error. Msg 7303, Level 16, State 1, Line 1 Cannot initialize the data source object of OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)". <
我使用下面的查询:
SELECT * INTO dbo.headers
FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0' ,'Excel 12.0;Database=C:\Users\ishu.bhardwaj\Desktop\02.xlsx;HDR=YES;IMEX=1' ,'SELECT * FROM [Sheet1$]')
问候 Ishu Bhardwaj
尝试导入使用IMPORT EXPORT SSMS功能代替 – knkarthick24 2014-10-09 11:19:27
检查以下URL http://stackoverflow.com/questions/13888082/ole-db-provider-microsoft-ace-oledb-12-0-for-linked-server- null返回m,并希望这会帮助你。 – 2014-10-09 11:23:57
Msg 7399,Level 16,State 1,Line 2 链接服务器“(null)”的OLE DB提供程序“Microsoft.ACE.OLEDB.12.0”报告了错误。提供者没有提供任何关于错误的信息。 消息7303,级别16,状态1,行2 无法初始化链接服务器“(null)”的OLE DB提供程序“Microsoft.ACE.OLEDB.12.0”的数据源对象。 – 2014-10-09 11:42:13