Lawrence Salvucci
asked on
Linked Servers in SQL Server Standard 2014 to MS Access 2007 Database
I need to set up a Linked Server in SQL Server 2014 to an Access 2007 Database. When I open the "New Linked Server" window and go to choose a Provider from the dropdown list I do not see anything that references Access. How do I set up a Linked Server to an Access Database??
http://www.gregorystrike.com/2010/11/15/access-2007-database-as-linked-server-in-sql-2008-r2/
ASKER
I installed the 32bit Database Engine but I still don't see the "Microsoft Office 12.0 Access Database Engine OLE DB" in the Provider dropdown list when I go to add a new Linked Server
Also, I do not see "Microsoft.ACE.OLEDB.12.0" in the Providers list under Linked Servers in the tree view.
Also, I do not see "Microsoft.ACE.OLEDB.12.0"
I'm not sure if Access 2007 still a JET database. Could you find the JET engine in the providers list?
ASKER
Nope, that wasn't in the list either.
The correct name should be "OLE DB for Microsoft JET ..." (Microsoft.Jet.OLEDB.4.0).
Anyway I was checking and looks like that was the way to connect to versions previous that MS Access 2007 (.mdb files). So, since Access 2007 (.accdb files) you should really use the "Microsoft.ACE.OLEDB.12.0" .
Can you post here how's your linked server configuration looks like?
Anyway I was checking and looks like that was the way to connect to versions previous that MS Access 2007 (.mdb files). So, since Access 2007 (.accdb files) you should really use the "Microsoft.ACE.OLEDB.12.0"
Can you post here how's your linked server configuration looks like?
ASKER
You mean this? See attached screenshot...
Doc1.docx
Doc1.docx
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Where would I find the Linked Server Configuration? Not sure where to look for that exactly.
Here's what I got when I tried to run that query:
Msg 15281, Level 16, State 1, Line 1
SQL Server blocked access to STATEMENT 'OpenRowset/OpenDatasource ' of component 'Ad Hoc Distributed Queries' because this component is turned off as part of the security configuration for this server. A system administrator can enable the use of 'Ad Hoc Distributed Queries' by using sp_configure. For more information about enabling 'Ad Hoc Distributed Queries', search for 'Ad Hoc Distributed Queries' in SQL Server Books Online.
Here's what I got when I tried to run that query:
Msg 15281, Level 16, State 1, Line 1
SQL Server blocked access to STATEMENT 'OpenRowset/OpenDatasource
ASKER
Also, the 32bit DB Engine was the Access Database Engine. I am running office 32bit but my system is a 64bit.
This is what I am running for SQL
Product Version: 12.0.4213.0
Product Name: SQL Server 2014
Product Level: SP1 + Security update(GDR)
Product Edition: Standard Edition (64-bit)
This is what I am running for SQL
Product Version: 12.0.4213.0
Product Name: SQL Server 2014
Product Level: SP1 + Security update(GDR)
Product Edition: Standard Edition (64-bit)
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Ok now the query runs fine. Does that mean I can now set up a linked server to the Access Database? I still don't see the jet engine in the list of providers though.
The machine is a 64bit as well as the SQL server 2014 version. The only thing that is 32bit is office 2007.
The machine is a 64bit as well as the SQL server 2014 version. The only thing that is 32bit is office 2007.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Well it did create the linked database but when I try to expand the tree to list all the tables I get the attached error. I also included the properties of the new linked DB.
Doc2.docx
Doc2.docx
ASKER
When I try to test the connection I get this error....
Doc3.docx
Doc3.docx
The machine is a 64bit as well as the SQL server 2014 version. The only thing that is 32bit is office 2007.I think you really need to install the Office 2007 64bit.
ASKER
Do you think that will solve the problem of the provider for A2007 not showing up in the list?
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Thank you for your help!