Solved

Excel 2007 to sql 2005 using openrowset

Posted on 2010-09-16
5
601 Views
Last Modified: 2012-08-14
I've been trying to use Microsoft.ACE.OLEDB.12.0 provider unsucessfully.  I get the message:
The OLE DB provider "Microsoft.ACE.OLEDB.12.0" has not been registered.

After doing some searching on the web, based on the various recommendations I've reviewed, I've downloaded the driver from:  http://www.microsoft.com/downloads/en/details.aspx?FamilyID=7554F536-8C28-4598-9B72-EF94E038C891&displaylang=en

I still get the above message.  I guess I haven't "registered" the driver yet.  Is that the problem?

Here's my code:

SELECT *
FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0',
                'Excel 12.0 Xml;HDR=YES;
                   Database=H:\Excel\Test.xlsx',
                'Select * From [Sheet1$]');



0
Comment
Question by:bgernon
  • 3
  • 2
5 Comments
 
LVL 5

Expert Comment

by:Vipul Patel
ID: 33695409
Have you executed below queries?

EXEC sp_configure 'show advanced options',1;
GO
RECONFIGURE;
GO
EXEC sp_configure 'Ad Hoc Distributed Queries', 1;
GO
RECONFIGURE;
0
 

Author Comment

by:bgernon
ID: 33695900
I'm just now remembering that I used to have a local server on my computer at my last job.  I do not have one on this computer. I hesitate to invoke stored procedures from the main server.   Can you tell me if running these will affect my computer only or the main server?  
0
 
LVL 5

Accepted Solution

by:
Vipul Patel earned 500 total points
ID: 33698105
If you are using SQL Server of the main server then it will affect main server.
0
 

Author Comment

by:bgernon
ID: 33702147
Let me make sure I understand what you are saying.  Currently, I am using sql server express from my desktop to query a database on a main server.  If I run the stored procedures from my desktop, it will affect the main SQL server?

I  looked up EXEC sp_Configure.  Based on what I am reading, sounds like the system admistrator needs to turn the Ad hoc so that I can use openrowset and Show advanced options on.  I'll speak with the admistrator.  

Thanks
0
 

Author Closing Comment

by:bgernon
ID: 33702168
Could have used and explaination of what each stored procedure did and who needs to execute them.  I had to look them up on the web.  
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

785 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