我有这个疑问如何在SQL Server 2005中读取xml?
WITH XMLNAMESPACES (DEFAULT 'http://www.w3.org/2005/Atom')
select
cast(idsku as int) idsku,
cast(entregado as int) entregado from #final1 final FOR XML AUTO, ROOT ('clientesxml'), ELEMENTS
这回
<clientesxml xmlns="http://www.w3.org/2005/Atom">
<final>
<idsku>191</idsku>
<entregado>159</entregado>
</final>
</clientesxml>
我的问题我怎么创建一个存储过程,它读取XML返回,并将其转换为#tempTable
?
您是否希望将数据插入回原来的格式? –