简体   繁体   English

如何使用 C++ Builder FMX 应用程序直接从 Android 连接到 SQL 服务器

[英]How can I connect to SQL Server directly from Android with an C++ Builder FMX application

I get the following error when I try to connect to SQL Server directly with a C++Builder 10.2 Tokyo application.当我尝试使用 C++Builder 10.2 Tokyo 应用程序直接连接到 SQL 服务器时出现以下错误。 I couldn't locate the library requested despite all my searching.尽管我进行了所有搜索,但我找不到请求的库。

Can anyone help?任何人都可以帮忙吗? I'm at a crossroad to decide to continue with C++Builder or Xamarin.我正处于决定继续使用 C++Builder 或 Xamarin 的十字路口。

图片

Do you have C++ Builder Enterprise or Architect edition?你有 C++ Builder Enterprise 或 Architect 版本吗? You need this to connect to SQL Server using FireDAC.您需要使用 FireDAC 连接到 SQL 服务器。 C++ Builder Professional edition can only connect to local databases. C++ Builder专业版只能连接本地数据库。

Looking at this page: Embarcadero Microsoft SQL interface看这个页面: Embarcadero Microsoft SQL 接口

suggests to me that Microsoft SQL with Android client is not supported.向我建议不支持带有 Android 客户端的 Microsoft SQL。

FDConnection is FMX compatible, but the drivers for various OSes are not. FDConnection 与 FMX 兼容,但各种操作系统的驱动程序不兼容。

There's a company called Devart that develops direct access connectivity for RAD studio mobile devices;有一家名为 Devart 的公司为 RAD studio 移动设备开发直接访问连接; Not sure if this will work if you only have C++ builder;如果您只有 C++ 构建器,不确定这是否可行; but worth a try;但值得一试;

I'm currently in the same pickle and I'm busy writing a tcpclient/server proxy fmx app that will run on a windows server[where the mssql driver will work]我目前在同一个泡菜中,我正忙于编写一个 tcpclient/server 代理 fmx 应用程序,它将在 windows 服务器上运行[mssql 驱动程序将在其中工作]

The idea is to connect from mobile device with tcp client to tcp server component running on windows and have that app grab the info i need for mobile app.这个想法是从带有 tcp 客户端的移动设备连接到在 windows 上运行的 tcp 服务器组件,并让该应用程序获取我需要的移动应用程序信息。 Not the fastest solution in long run as you have to do all your authentication and encryption yourself and not the cheapest either as it requires an online windows server or pc... but if you already have it, you might as well use it.从长远来看,这不是最快的解决方案,因为您必须自己进行所有身份验证和加密,也不是最便宜的,因为它需要在线 windows 服务器或 pc ......但如果您已经拥有它,您不妨使用它。

Will update if it succeeds or fails成功或失败都会更新

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM