无法在Sqlserver中加载xml文件:由于无法打开该文件,无法批量加载。操作系统错误代码(空)

时间:2019-10-11 09:13:03

标签: sql-server tsql

我需要将xml文件中的数据加载到sql server表列中。尝试以下查询

declare @fileData nvarchar(max)

Select @fileData=BulkColumn
     from OpenRowSet(Bulk 'C:\Testfile\Test.xml', Single_blob ) x;   

但是我收到以下错误

 Cannot bulk load because the file "C:Testfile\Test.xml" could not be opened. Operating system error code (null).
 Am trying from SSMS in my machine,i dont have access to sql server machine.

0 个答案:

没有答案