XML与DataTable / DataSet [英] XML vs DataTable/DataSet

查看:65
本文介绍了XML与DataTable / DataSet的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

从Sql Server获取数据的最佳方法是什么?导出到XML或DataTable?

从我读到的内容中,运行时没有太大区别......那么更好的是什么?或者更正确......?

谢谢

Hello,
what is the best way to get data from Sql Server? export to XML or to DataTable?
From what i read there is no much difference in runtime... so what is better? or what is more 'right'...?
thank you

推荐答案

XML 是一种文件格式:如果将数据导出到 XML ,那么你必须以某种方式解析它(可能在 DataTable :))以执行计算。
XML is a file format: if you export the data into XML then you have to parse somehow it (possibly loading it in a DataTable :) ) in order to perform computations.


这篇关于XML与DataTable / DataSet的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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