Solved

Excel 2007 to sql 2005 using openrowset

Posted on 2010-09-16
5
602 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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

809 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