Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Microsoft.ACE.OLEDB.12.0" for linked server "

$
0
0

I have the following error

[Execute SQL Task] Error: Executing the query "SELECT * into dbo.Temp_Grades_8407  FROM OPENROWSE..." failed with the following error: "Cannot initialize the data source object of OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)".". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

I am using sql 2008 64 bit and windows server 2008

I downloaded and installed

AccessDatabaseEngine.exe

 ran the following

gave sqlaccount access to the folder that contains the xls file

I ran the following

use master

go

sp_configure 'show advanced options', 1;

GO

RECONFIGURE;

GO

sp_configure 'Ad Hoc Distributed Queries', 1;

GO

RECONFIGURE;

GO

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 

Note my excel had macros I disabled the macros 

 


sz





Viewing all articles
Browse latest Browse all 24688

Trending Articles