Microsoft.ACE.OLEDB.12.0不起作用

时间:2015-03-25 11:24:01

标签: sql excel

你可能会说过这个问题已经被问到了,但是我尝试了网络上的所有解决方案,而且没有人解决我的问题。

我正在运行以下查询:

SELECT * INTO [DB_Pack].[dbo].[Output_POL$]
FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0',
  'Excel 12.0 Xml; HDR=NO;
   Database=T:\Reports\Import\excelfile2.xlsx',
   [Output]);

我收到以下错误:

Ad hoc access to OLE DB provider 'Microsoft.ACE.OLEDB.12.0' 
has been denied. You must access this provider through a linked server.

到目前为止,我已尝试进行注册表更改以及遵循本指南http://www.kodyaz.com/articles/enable-Ad-Hoc-Distributed-Queries.aspx

有没有人对如何解决这个问题有任何进一步的建议。

0 个答案:

没有答案