[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Using MS SQL / SQLLite for iPhone  App

Posted on 2016-11-07
7
Medium Priority
?
117 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 40

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 40

Accepted Solution

by:
lcohan earned 2000 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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 40

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Is your phone running out of space to hold pictures?  This article will show you quick tips on how to solve this problem.
Windocks is an independent port of Docker's open source to Windows.   This article introduces the use of SQL Server in containers, with integrated support of SQL Server database cloning.
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 to return specific rows and columns, with various degrees of sorting and limits in place.
Suggested Courses

830 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