Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2014-01-07
4
Medium Priority
?
1,570 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 39

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

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

730 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