Distributed Query: Import XML using OpenRowSet Bulk from UNC - access denied
- From: manderson.hamish@xxxxxxxxx
- Date: Mon, 25 Feb 2008 02:25:33 -0800 (PST)
I'm having issues importing XML data using a distributed query with
the following statement which is run from an XP workstation named A
connecting to SQL2005 Server B, the data is located on a server C at
the following UNC path \\SERERC\SHARE\PATH\DATAFILE.XML
DECLARE @xml XML
SELECT @xml =CONVERT(XML, bulkcolumn, 2)
FROM OPENROWSET(BULK '\\SERVERC\SHARE\PATH\DATAFILE.XML', SINGLE_BLOB)
AS x
SELECT @xml
Results:
Msg 4861, Level 16, State 1, Line 2
Cannot bulk load because the file "\\ServerC\Share\Path\DataFile.xml"
could not be opened. Operating system error code 5(Access Denied).
The SQL Server service is running using a domain user account with
permissions to read the remote files. I have logged in locally to the
SQL server and verified this. Also, if I run the query from the SQL
Server B, the query is successful.
When the query is run from Workstation A, the query fails. If the XML
files are local to the SQL server, I get successful results... just
not via UNC, ie. distributed query's fail. Are they supported?
User on Workstation A is authenticated with Integrated security (SQL
Admin) and has rights to read the XML files on Server C.
AdHoc Queries using OpenRowSet has been enabled and verified.
Thank you for any responses.
Hamish
.
- Follow-Ups:
- Re: Distributed Query: Import XML using OpenRowSet Bulk from UNC - access denied
- From: Michael Rys [MSFT]
- Re: Distributed Query: Import XML using OpenRowSet Bulk from UNC - access denied
- Prev by Date: Re: Extract and Insert Xml nodes
- Next by Date: XML data type in distributed environment
- Previous by thread: Re: export to file
- Next by thread: Re: Distributed Query: Import XML using OpenRowSet Bulk from UNC - access denied
- Index(es):
Relevant Pages
|