将 SQL 数据从 Android 导出到 MS SQL Server 2008
我对 Android 还很陌生,我想知道从 Android 设备获取数据到 MS SQL Server 2008 的最佳方法是什么?我见过很多人对几种方法进行了评论,但我正在寻找一种方法,以某种方式将数据导出为基于 XML 的文件,并尝试通过互联网(可能是 Web 服务)发送它以进行插入进入 MS SQL 服务器。问题是我不确定如何从 Android 设备获取 XML 文件并将其插入 MS SQL 服务器。我缺少此过程中的步骤,并且没有看到任何明确说明如何执行此操作的内容。例如,一旦获得 XML,下一步该做什么,等等?我只需要一些关于这个主题的说明,任何事情都会非常感激,谢谢!
I'm fairly still new to android and I was wondering, what is the best way to get data from an android device to MS SQL server 2008? I've seen a number of people who have commented on several ways to do this but I'm looking for a means of somehow exporting the data as an XML based file and trying to send it via internet (maybe web service) to be inserted into MS SQL server. Problem is that I'm not sure how to take the XML file from an android device and get it to insert into MS SQL server. I am missing the steps in this process and I haven't seen anything that has clearly stated how to do this. For instance once you have the XML what do you do next, and so on? I just need some light to be shed on this subject anything would be much appreciated, thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我很理解你的问题,你想将 xml 文件(在你的手机中)发送到 mysql 服务器,对吧?
如果数据很小并且可以在一个请求中发送整个数据,则可能遵循对您有用的步骤 -
这些是执行此任务的非常基本和常见的步骤......
希望这会有所帮助...
As much i understood your question that you want to send xml file's(that is in your phone) to mysql server, right?
if data is small and whole data can be send in one request,may be following steps usefull for you-
these are the very basic and common steps to perform this task...
hope this will help...
数据如何存储在设备上?您需要通过互联网发送还是通过 USB 电缆导出?
如果您通过互联网将数据发送到 Web 服务器,然后该服务器会将这些数据插入到您的 MS SQL 数据库中,Android 会附带一些有用的 JSON API,使数据序列化变得非常简单。
How is the data stored on the device? Do you need to send it over the internet or are you exporting it via the usb cable?
If you sending data over the internet to a web server that will then insert this data into your MS SQL database, Android comes with some useful JSON APIs that make serializing the data pretty straight forward.