我们可以连接到SQL Server的安卓蒋云良? [英] Can we connect to sql server from android appliation?

查看:72
本文介绍了我们可以连接到SQL Server的安卓蒋云良?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在开发的与网站相关的应用程序。我的应用程序的主屏幕包含登录和注册按钮。在用户注册时,所有字段值必须被存储在SQL Server

I am developing an application which is associated with a website. My application home screen contains login and register buttons. In user registration, all field values have to be stored in SQL Server.

是否有可能从移动Android应用程序连接到SQL Server?如果是的话怎么样?

Is it possible to connect to SQL Server from a mobile Android application? If so how?

推荐答案

在您的网站上,我将创建一个公开只是你需要在你的Andr​​oid应用程序中的信息服务。千万不要通过SQL字符串。正如罗宾说,这是一个重大的安全问题。然后,只需在您的应用程序使用这些服务。

On your website, I would create services that expose just the information you will need in your Android application. Never pass SQL strings. As Robin said, that's a major security issue. Then just consume these services in your app.

这篇关于我们可以连接到SQL Server的安卓蒋云良?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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