Solved

SQL Server Management Studio 2012 Setup for MS Access in Linked Server OPENROWSET

Posted on 2014-01-07
4
1,516 Views
Last Modified: 2014-01-26
I want to be able to create a native SQL query in SQL Server that joins two tables, one from SQL Server and one from MS Access within SQL Server Management Studio 2012.

Notes: I have MS Access 2010 32 bit installed on the computer and am using SQL Server 64 bit.

I've tried the following, and get this error message when testing:
USE master;
  GO
EXEC sp_addlinkedserver
     @server = N'Access Test',
     @provider = N'Microsoft.Jet.OLEDB.4.0',
     @srvproduct = N'OLE DB Provider for Jet',
     @datasrc = N'D:\Test\Test.accdb';
  GO
 
Command(s) completed successfully.

TITLE: Microsoft SQL Server Management Studio
------------------------------

The test connection to the linked server failed.

------------------------------
ADDITIONAL INFORMATION:

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)

------------------------------

Cannot create an instance of OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "Access Test". (Microsoft SQL Server, Error: 7302)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&ProdVer=11.00.3128&EvtSrc=MSSQLServer&EvtID=7302&LinkId=20476



I need to know

1. the driver to use and
2. where to download it
3. in order to use it in OPENROWSET or Linked Server

Thanks.
0
Comment
Question by:akivashapiro
  • 2
4 Comments
 
LVL 36

Expert Comment

by:PatHartman
ID: 39762924
This isn't actually an Access question since you are not using Access.  You are using Jet or ACE depending on whether you have an MDB or ACCDB you want to open.  It is not necessary to even have Access installed although installing Access will also install whatever drivers you need.  You might get better help in the SQL Server forum.

Jet is the database engine for MDB's and ACE is the database engine for ACCDB's.  Jet used to be installed by default with windows regardless of whether or not you installed Access.  I'm not sure about ACE.  But, since you installed Access, you would also have installed the drivers for it.
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 39762954
1. the driver to use and
There is no 64-bit driver for JET.
0
 

Accepted Solution

by:
akivashapiro earned 0 total points
ID: 39798748
I solved this with:

Microsoft.ACE.OLEDB.12.0
0
 

Author Closing Comment

by:akivashapiro
ID: 39809849
It worked.
0

Featured Post

Free Webinar: AWS Backup & DR

Join our upcoming webinar with experts from AWS, CloudBerry Lab, and the Town of Edgartown IT to discuss best practices for simplifying online backup management and cutting costs.

Question has a verified solution.

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

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
I have a large data set and a SSIS package. How can I load this file in multi threading?
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

713 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