如何将xml数据从sql导出到asp.net中的xml文件 [英] how to export xml data from sql to xml file in asp.net

查看:71
本文介绍了如何将xml数据从sql导出到asp.net中的xml文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

querry是

声明@x为xml;

设置@x =(从表中选择*表示xml路径('Child'),root('Parent') )

选择@x

querry is
declare @x as xml;
set @x= (Select * from table for xml path ('Child'),root('Parent')
select @x

推荐答案

在这种情况下,你会得到@X作为字符串返回到aspx客户端,使用字符串来将数据保存到磁盘。
In this case you would get @X return to the aspx client as a string, use the string to save the data to the disk.


这篇关于如何将xml数据从sql导出到asp.net中的xml文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆