将 SQL 数据从 Android 导出到 MS SQL Server 2008

发布于 2024-12-07 14:10:00 字数 299 浏览 0 评论 0原文

我对 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

鸠魁 2024-12-14 14:10:00

我很理解你的问题,你想将 xml 文件(在你的手机中)发送到 mysql 服务器,对吧?

如果数据很小并且可以在一个请求中发送整个数据,则可能遵循对您有用的步骤 -

  1. 从 xml 文件读取数据,您可以使用任何技术,例如 xml pull 解析器或 dom。
  2. 为http请求制定一个方法。
  3. 创建一个服务来接收此 http 请求并将其传输到服务器。

这些是执行此任务的非常基本和常见的步骤......
希望这会有所帮助...

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-

  1. read data from xml file you can use any technique like xml pull parser or dom.
  2. make a method for http request.
  3. make a service that will receive this http request and transfer it to server.

these are the very basic and common steps to perform this task...
hope this will help...

下壹個目標 2024-12-14 14:10:00

数据如何存储在设备上?您需要通过互联网发送还是通过 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文