dbaspot
Tags Register FAQ Calendar Search Today's Posts Mark Forums Read

Import Excel 2007 into SQL 2000 with OpenRowSet - Access Denied - sqlserver-odbc

This is a discussion on Import Excel 2007 into SQL 2000 with OpenRowSet - Access Denied - sqlserver-odbc ; I am trying to import data from an Excel 2007 file into SQL 2000 using the following: SELECT * FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0','Excel 12.0;Database=c:\Excel2007.xlsx', 'select * from Sheet1$') This works fine on my XP Pro machine running a local SQL instance. I ...


Home > Database Forum > Microsoft SQL Server > sqlserver-odbc > Import Excel 2007 into SQL 2000 with OpenRowSet - Access Denied

Reply

 

LinkBack Thread Tools Display Modes
  #1  
Old 10-07-2008, 09:54 AM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Import Excel 2007 into SQL 2000 with OpenRowSet - Access Denied

I am trying to import data from an Excel 2007 file into SQL 2000 using the
following:

SELECT * FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0','Excel
12.0;Database=c:\Excel2007.xlsx', 'select * from Sheet1$')

This works fine on my XP Pro machine running a local SQL instance. I have
Office 2003 with the 2007 compatibility pack installed. I have also installed
AccessDatabaseEngine.exe

However when I try the exact same on a 2003 server which has Office 2003
with all of the above I get the access denied error below.

OLE/DB Provider 'Microsoft.ACE.OLEDB.12.0' IUnknown::QueryInterface returned
0x80070005: Access denied

The logoin account that I am using has full admin priveleges on the server.
I can open the Excel file with Excel 2003.

Also, if I change the filename in the query to a non-existant file, it
returns the same access denied error.
Maybe the error does not pertain to the file itself, instead could it be
something else?

Any ideas?

Thanks
Gary

Reply With Quote
Reply

Thread Tools
Display Modes



All times are GMT -4. The time now is 09:29 AM.