Solved

Using MS SQL / SQLLite for iPhone  App

Posted on 2016-11-07
7
46 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
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Learn to move / copy / export exchange contacts to iPhone without using any software. Also see the issues in configuration of exchange with iPhone to migrate contacts.
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Viewers will learn how the fundamental information of how to create a table.
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

895 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

12 Experts available now in Live!

Get 1:1 Help Now