Solved

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

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

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
Viewers will learn how the fundamental information of how to create a table.

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now