Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 Ad hoc access to OLE DB provider 'Microsoft.ACE.OL

Author  Topic 

dolphin123
Yak Posting Veteran

84 Posts

Posted - 2013-09-04 : 15:34:33
Hi,

A user is trying to load data from an EXCEL file using a custom built dataloader to SQL server 2008 database table and this is the error he is getting:


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


This is what I did:

ran this on the destination DB server:



USE [master]
GO

EXEC master . dbo. sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0' , N'AllowInProcess' , 1
GO

EXEC master . dbo. sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0' , N'DynamicParameters' , 1
GO


and I checked to see if AccessDatabaseEngine_x64 is installed there and it is already there.

I am sure this happened before and I solved it by doing the above. I am not sure why it is not working now.

Can anyone spare any thoughts?

Regards,
D

   

- Advertisement -