我在SQL Server中有这个查询。当我运行它时,我收到此错误。
Msg 9420,Level 16,State 1,Line 2
XML解析:第861527行,第67字符,非法xml字符
有人可以帮我解决吗?
查询:
DECLARE @XmlDoc XML
SET @XmlDoc = (SELECT Cast(XmlData.BulkColumn AS XML) AS BulkColumn
FROM OpenRowSet(BULK '\\pks-la-nasuni\Data Services Department\XML_Test_Import\Phan_Temp\prosight.xml', Single_CLOB) AS XmlData
)
TRUNCATE TABLE AAA_tbl_Transaction_Staging
INSERT AAA_tbl_Transaction_Staging (Xml_Data)
SELECT T.c.query('.') AS Xml_Data
FROM @XmlDoc.nodes('/Transactions/Transaction') T(c)