有没有直接从Android应用程序访问MSSQL数据库的方法吗? [英] Is there a way to access MSSQL database directly from android application?

查看:125
本文介绍了有没有直接从Android应用程序访问MSSQL数据库的方法吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近在做一个Android应用程序需要使用MSSQL数据库进行数据交换。我现在正在做使用PHP页面连接我的应用程序和数据库。只是想知道有没有办法,让Android应用程序直接发送查询到数据库?如果有一种方法可以做到这一点,我在哪里可以找到一些例子?

I'm recently doing an android app that need data exchange with MSSQL database. What I'm doing now is using a PHP page to "connect" my app and the database. Just wondering is there a way to let the android app sending queries directly to the database? If there is a way to do so, where can I find some examples?

推荐答案

没有,你正在做正确的。你必须创建Web服务或您的Andr​​oid应用程序将使用与您的数据库进行交互的API。

No, you are doing right. You have to create web services or API that your android application will use to interact with your database.

这篇关于有没有直接从Android应用程序访问MSSQL数据库的方法吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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