开发者

SQL Server and Android

Is there any way to connect to a SQL Server from an Android application and execute/query SQL statements w开发者_StackOverflow中文版ithout Web Service/WCF etc?

Thanks.


No.

Last I checked, Android doesn't support JDBC (and there were no custom drivers) so you can't make connections straight from Androi to SQL Server.


You could use the jtds driver (version 1.25) to connect to an external sql server


FreeTDS is a library written in C and available under LGPL, which allows one to connect to MSSQL and Sybase servers. I don't think anyone has tried that, but I don't see why it shouldn't compile on Android NDK. Then you can wrap it into JNI classes, and use it from your Android app.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜