Solved

Need help with OPENROWSET using Microsoft.ACE.OLEDB.12.0

Posted on 2014-01-07
4
3,713 Views
Last Modified: 2014-01-12
I need help getting this OPENROWSET command to work when executing it in SQL Server 2012 64-bit under Windows Server 2008 R2, Enterprise.

SELECT *
FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0','D:\EECO\E2T2.accdb', T1)

I receive the following error:

OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)" returned message "Could not find installable ISAM.".
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)".

Notes:
- "Microsoft.ACE.OLEDB.12.0" does exist as a Linked Servers Provider.

- "E2T2.accdb" is a new DB created in Access 2010 64 bit. The only options under Access Options/General/Creating databases/Default file format for Blank Database are Access 2000, Access 2002 - 2003, Access 2007. I used Access 2007.
0
Comment
Question by:akivashapiro
  • 3
4 Comments
 
LVL 17

Expert Comment

by:Kent Dyer
ID: 39763798
Let's back up for a moment..  What is your end-goal?  Are you trying add/extract a ton of records from SQL?  Is this from Access/Excel/text/or other database?  Rather than using quirky OPENROWSET, I would go to a SQL Job (formerly called a DTS Package)..
0
 

Author Comment

by:akivashapiro
ID: 39763814
What I want to do is link to tables an Access DB and use them in sql join clauses in stored procedures with tables in SQL Server.
0
 

Accepted Solution

by:
akivashapiro earned 0 total points
ID: 39763913
I got it to work:

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
SELECT *
FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0','D:\E2 Test.accdb';;, [T1])

The parameter sets were required. Found the answer here (first response):
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/bb2dc720-f8f9-4b93-b5d1-cfb4f8a8b1cb/the-ole-db-provider-microsoftaceoledb120-for-linked-server-null-reported-an-error-access?forum=sqldataaccess
0
 

Author Closing Comment

by:akivashapiro
ID: 39774512
I found the solution.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
MS SQL: Create User Function to Remove Long Words 5 31
sql server query 12 24
Dynamic SQL select query 4 36
install report service in sccm2012 3 17
Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question