I have an application that gets data from a SQL Server database using a PHP Script stored in an online server.

I get the data on my iOS app with NSURLConnection, I connect to the script and the script executes the queries on the server.

My question is, can I store this script on the iPhone or iPad and forget the online server? Also, can I execute SQL Server queries without PHP Scripts and POST methods?

有帮助吗?

解决方案 2

I was searching a lot of time for some library to do that I want. I found this library:

https://github.com/martinrybak/SQLClient

Main blog of the proyect:

http://objcsharp.wordpress.com/2013/10/15/an-open-source-sql-server-library-for-ios/

If you know another Libraries you can post in this thread for help the people with the same problem.

Regards.

其他提示

If your database is static(no update), then you can use iOS's native CoreData to manage the database locally and you dont need internet connection at all.

If your database needs to be updated after you release your application, then you will need a server.

In either case the programming language on iOS will be Objective C and C++ (instead of Python).

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top