Groups | Blog | Home
all groups > sql server (alternate) > october 2005 >

sql server (alternate) : OpenRowSet with Excel DENIED


groups_mw NO[at]SPAM yahoo.com
10/6/2005 3:57:08 PM
Same with OpenDataSource. SQL 2000, logged in as non-SA.

Getting message:

Ad hoc access to OLE DB provider 'Microsoft.Jet.OLEDB.4.0' has been
denied. You must access this provider through a linked server.

Can run with SQLOLEDB with connection string to same server
(obviously), but when trying to access an Excel file, get the message
above.

It appears that the file name given in the connection string to Excel
is with respect to the SQL server, so I have used UNC names to the
file. Nothing.

Want to avoid DTS when it's a table that I need and can't use a linked
server because it's always a one time thing.

Any tips appreciated!
Steve Kass
10/7/2005 12:00:00 AM
What version of SQL Server are you running?
Does this help? http://support.microsoft.com/kb/328569

Steve Kass
Drew University

[quoted text, click to view]
groups_mw NO[at]SPAM yahoo.com
10/7/2005 5:34:17 PM
SQL 2000. It is looking like a registry entry is in order. MS has
several KB items on this subject so it's hard to keep track. I was
hoping for a non-registry route.
AddThis Social Bookmark Button