Solved

Using MS SQL / SQLLite for iPhone  App

Posted on 2016-11-07
7
27 Views
Last Modified: 2016-11-07
I have a relational 10-15 Table which is about Business, Activities, Recreation  in the Town. This is very small database designed in SQL.

I have to design an iPhone App to retrieve the data and Read only mode.

Do i need to have SQLLite database on the App ? If so, does the data from SQL is communicated to SQLLite through API ?

By the way, iPhone is expected to be coded using XAMARIN Environment - C#.
0
Comment
Question by:chokka
  • 4
  • 3
7 Comments
 
LVL 39

Expert Comment

by:lcohan
ID: 41877791
"Do i need to have SQLLite database on the App" - you need to access it via your "App" (and eventually to trigger sync before read) as it is already on IOS and Android devices. For sync-ing to IOS looks like someone did that already in xamarin:

https://forums.xamarin.com/discussion/5719/sync-sqlite-with-sql-server-merge-replication

SyncStudio https://apkpure.com/syncstudio-sync-client/com.syncstudioB4A.client looks like will have some IOS nugget in the future as per comments here: https://www.dbsyncstudio.com/challenges-of-mobile-db-sync/
0
 

Author Comment

by:chokka
ID: 41877810
@ICohan, I am in the Designing Phase. My question is, whether iPhone App requires to have both server as well as client based database ? Or, iPhone App can be developed only with Sqllite database.
0
 
LVL 39

Accepted Solution

by:
lcohan earned 500 total points
ID: 41877836
Sorry if I misunderstood the essence of your question -  yes, SQLlite on your device should be enough in my opinion to host the data for your local app.
 
https://www.sqlite.org/whentouse.html

Now...if you need to deploy the app on multiple devices (which is more like it in my opinion) you'll have the local SQL lite client database sync-ed to a MS SQL for instance (if is small DB - up to max 2GB) you could even use free SQL Express if I'm not mistaken as your "server" repository where data from all clients is centralized/merged and sync-ed to all the devices as needed. Or use MySQL for your "server" (which I believe it is still free) if you think you'll have more than 2GB of data in your "Server" database.
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 

Author Comment

by:chokka
ID: 41877878
Thank you so much @Icohan.  I firmly believe size of my database would be less than 0.5 GB or little less than 1 GB. Yes, App will be deployed at least minimum of 50 - 100 users.

As per my understanding on your comment, I will have to have a Server based Database - SQL Express and SQLLite for App based database.
0
 
LVL 39

Expert Comment

by:lcohan
ID: 41877885
Right that should do it for sure and keep in mind to sync only what/when necessary from "server" SQL to "client" SQLLite database.
0
 

Author Comment

by:chokka
ID: 41877895
Thank you so much. That works...!!
0
 

Author Closing Comment

by:chokka
ID: 41877896
Thanks
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Learn new improvements released by Google for Google Calendar. Noted in this article are simple tips and tricks that can make your everyday use of Google Calendar better.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now