OpenDataSource "Unspecified Error" when connecting to local Excel spread*** file with non-admin account
From: Frank Jones (frank_at_bogusfiosincfake.com)
Date: 12/14/04
- Next message: Shaun Camilleri: "Connectivity Stand-Alone installer"
- Previous message: Larry Chesnut: "SuperSocket Info: Bind failed on TCP port 1433"
- Next in thread: Frank Jones: "RE: OpenDataSource "Unspecified Error" when connecting to local Excel"
- Reply: Frank Jones: "RE: OpenDataSource "Unspecified Error" when connecting to local Excel"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 14 Dec 2004 00:16:12 -0800
OpenDataSource gives "Unspecified Error" when connecting to local Excel
spread*** file with account not in local administrators group, on
Microsoft Windows 2003 / Microsoft SQL Server 2000 sp3a.
I am having a permissions problem using the OpenDataSource command to open
an Excel spread*** located on our Sql Server. The query is as follows:
SELECT * FROM opendatasource('Microsoft.Jet.OLEDB.4.0', 'Data
Source="C:\myPath\tempExcel.xls";User ID=Admin;Password=;Extended
properties=Excel 8.0')...['US Mail$'] tblImport
As you can see, the file is on the local Sql Server. All domain users have
full control to the myPath directory. The Sql Server service (and Sql
Server agent service) is running as the domain administrator account. We
are using integrated security to authenticate with the Sql Server. I even
tried setting up the proxy account as the domain administrator thinking that
maybe the opendatasource would use that.
The error I get when running this query on a remote machine as a domain user
through Query Analyzer is "Unspecified Error" in the Jet Initialization.
Even if I add domain users to the server administrator role, I still get the
error. However, if I add that domain users account to the local
administrators group on the Sql Server, the query works. I know this is not
an NTFS permission issue, as I have auditing turned on and there are no
object security failures in the event logs.
So my question is: what specific permissions are required for a domain user
to run an OpenDataSource query like this without having to add them to the
local administrators group on the Sql Server? Having to add the domain
users that need to run this query to the Sql Servers local administrators
group is simply unacceptable...
Thanks,
Frank Jones
- Next message: Shaun Camilleri: "Connectivity Stand-Alone installer"
- Previous message: Larry Chesnut: "SuperSocket Info: Bind failed on TCP port 1433"
- Next in thread: Frank Jones: "RE: OpenDataSource "Unspecified Error" when connecting to local Excel"
- Reply: Frank Jones: "RE: OpenDataSource "Unspecified Error" when connecting to local Excel"
- Messages sorted by: [ date ] [ thread ]