Вопрос

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