Avatar of Brian Pringle
Brian PringleFlag for United States of America

asked on 

MSSQL - Cannot initialize the data source object of OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server

I created a linked server (Excel_EmployeeTable) for an Excel spreadsheet, which is located at C:\Temp\Employee Table.xlsx.  I am trying to get information out of the 'Staff' worksheet.

I tried to query by using the following two different queries, both of which end up with the same error message.  

First query...
select *
from Excel_EmployeeTable...[Staff$];

Open in new window


Second query...
select * 
from openquery(Excel_EmployeeTable, 'select * from [Staff$]')

Open in new window

Error message:
OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "Excel_EmployeeTable" returned message "Unspecified 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 "Excel_EmployeeTable".

Open in new window


OS:  Microsoft Windows 7 Enterprise 64-bit
Office:  Microsoft Office 2010 Standard 32-bit
SQL:  Microsoft SQL Server Enterprise (tried 32-bit and 64-bit)

Any ideas on how to fix this?
Microsoft SQL ServerMicrosoft ExcelSQL

Avatar of undefined
Last Comment
Brian Pringle
Avatar of Gaurav Singh
Gaurav Singh
Flag of India image

Seems some Configuration issue, Kindly check the below link for reference:

http://visakhm.blogspot.in/2013/12/how-to-solve-microsoftaceoledb120-error.html
ASKER CERTIFIED SOLUTION
Avatar of Brian Pringle
Brian Pringle
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Brian Pringle
Brian Pringle
Flag of United States of America image

ASKER

I was able to use a bulk insert and was able to import the data.
Microsoft SQL Server
Microsoft SQL Server

Microsoft SQL Server is a suite of relational database management system (RDBMS) products providing multi-user database access functionality.SQL Server is available in multiple versions, typically identified by release year, and versions are subdivided into editions to distinguish between product functionality. Component services include integration (SSIS), reporting (SSRS), analysis (SSAS), data quality, master data, T-SQL and performance tuning.

171K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo