且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将 android 与 MS SQL SERVER 2008 连接

更新时间:2022-04-24 23:01:29

这里有一些类似的问题(已回答):

here are some similar questions asked (an answered):

即使这些是针对 MySQL 的,它也应该通过更改引擎或驱动程序用于连接来适用于 MSSQL.通常,该方法是通过 Web 服务公开一些有限级别的修改.尽管如此,没有什么能阻止您直接访问数据库,尽管视情况而定,可能会带来安全风险.

Even though those are for MySQL, it should work for MSSQL by changing the engine or the driver's use to connect. Usually, the approach is to expose some limited level of modification through a web service. Still, nothing is stopping you from directly accessing the database, albeit depending on the case, could pose a security risk.

采用 Web 服务方法的主要原因:

Main Reasons the web service approach is taking:

  • 性能
  • 安全
  • ***实践
  • 关注点分离

一个例外是如果您想启用直接访问,因为您正在通过移动构建一种数据库客户端.

An exception is if you want to enable direct access because you're building a sort of database client through mobile.