Re: OPENROWSET
- From: "Martin Rakhmanov" <jimmers@xxxxxx>
- Date: Fri, 2 Jun 2006 22:16:04 +0400
Sol
Hidden shared resource C$ serves for administrative purposes that is why it
is secured by default.
I am not sure that syntax \\server\file.xls is correct because you cannot
share single file - only folder.
In case of \\server\wwwroot$\file.xls there is a (hidden) share
\\server\wwwroot$ that has permissions set so SQL Server can access it.
NB: permissions for shares are both filesystem permissions (in case of NTFS)
and share permissions (most strict).
Martin Rakhmanov
"Sol Rosenburg" <jvandyne@xxxxxxxxx> wrote in message
news:eMo$DEOhGHA.4276@xxxxxxxxxxxxxxxxxxxxxxx
I'm having problems with OPENROWSET with excel file.
I have excel file in network accessible folder. File opens in excel by
entering each of the following in explorer address
\\server\wwwroot$\file.xls
\\server\file.xls
\\server\c$\inetpub\wwwroot\file.xls
However OPENROWSET only works for
\\server\wwwroot$\file.xls
Otherwilse error message returned =
Server: Msg 7399, Level 16, State 1, Line 3
OLE DB provider 'Microsoft.Jet.OLEDB.4.0' reported an error. The provider
did not give any information about the error.
OLE DB error trace [OLE/DB Provider 'Microsoft.Jet.OLEDB.4.0'
IDBInitialize::Initialize returned 0x80004005: The provider did not give
any information about the error.].
I think there might be a permissions problem somewhere : maybe domain,
maybe
sql service account. Question is: what context / account is used to
execute
openrowset for each of above?
.
- Prev by Date: Re: deny permissions issues
- Next by Date: Re: CREATE SYMMETRIC KEY
- Previous by thread: Re: OPENROWSET
- Next by thread: OPENROWSET
- Index(es):
Relevant Pages
|