Solved

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

Posted on 2014-01-07
4
1,500 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 35

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

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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

832 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