我有一个需要分解的xml。但是我得到了这个错误XQuery [nodes()]: The name "s" does not denote a namespace.我有以下格式的xml
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/20052005/08/a
我目前正在运行Server 2014,需要从提供的XML字符串中分解属性/子属性,为年龄、颜色、座位和传输类型创建列:SELECT @XmlInput =Description)[1]','varchar(1000)') AS CarDescr FROM @XmlInput.nodes('/Cars/Car') AS x(y);
我向发件人证实,这是他们可以发送XML的唯一方式,
这种结构存储了大约10000行xml,返回结果大约需要2.5分钟。我已经在表上设置了一个主xml索引,并在表上设置了一个辅助(属性)索引。我已经将索引设置为每7天重建一次。[XmlTable]( [XmlDocument] [xml] NOT NULL,SET ANSI_NULLS ONSET ANSI_WARNINGS ON
SET NUMERIC_ROUNDABORT O