我有一个要导入的 XML 文件SQL Server 2012
。我以前没有做过,我知道的不多。经过一番研究,我尝试使用在 SQL Server Management Studio 中运行的以下命令打开 xml 文件。
SELECT CAST(x as XML) FROM OPENROWSET(
BULK 'C:\bulk\Users_test1111.xml',
SINGLE_BLOB
) AS X
为此,我收到以下错误:
Msg 4861, Level 16, State 1, Line 1
Cannot bulk load because the file "C:\bulk\Users_test1111.xml" could not be opened. Operating system error code 3(The system cannot find the path specified.).
您建议如何将文件放入数据库?